A lunar eclipse occurs when the Moon passes through the Earth’s shadow, just as a solar eclipse occurs when part of the Earth passes through the Moon’s shadow. So why don’t eclipses happen twice a month? The reason is that the Moon’s orbit around the Earth is tilted relative to the Earth’s orbit around the Sun.
https://solarsystem.nasa.gov/moons/earths-moon/lunar-phases-and-eclipses/