***Not an entry***
here you go
Discussing 18th- and 19th-century schoolhouses, Eric writes: "The woodshed was often a lean-to attached to the schoolhouse, but the most accepted arrangement was to place it between the schoolhouse and the privy, with a fence separating the boys' entrance from the girls'. The ancient designation of privy doors was to saw into them a sun (for boys' toilet) and a moon (for girls' toilet)." Eric has supplied a sketch of both versions, showing the familiar crescent moon for the girls and a radiant sun for the boys.
By way of corroboration, I note here in my manual of semiotics that the moon "is usually represented as the feminine power, the Mother Goddess, Queen of Heaven, with the sun as the masculine." Isn't that just great? All this time you thought you were in there just doing your business and now it turns out you were participating in a pagan ritual.
Why cartoonists picked up on the moon rather than the sun as the universal symbol for outhouse is hard to say. But knowing cartoonists I'd guess it has something to do with the fact that the radiant sun is hell to draw. The reason there's a hole in the first place is a lot simpler: it provides ventilation.