Don't forget that's a two-dimensional picture of 3D space, so it's probably not nearly as close to the moon as it appears. While most of the objects in the solar system are in kinda-sorta the same plane, they're not quite.
If all the objects in the solar system were in exactly the same plane we'd have a solar eclipse every month. The moon's orbit, for instance, is inclined at five degrees to the ecliptic.