The sky is spherical, so straight lines in the sky aren’t straight lines on its 2D projection on the retina. Rather, straight lines are great circles. So if you trace the great circle that connects the sun and the moon, the moon should "point" along that great circle – which can be considerably off of what we think of as a straight line (which is curved in reality).