Context: Learning from his parents, passed down generation to generation, he learned about the Hindu Deity, Ganesha, the son of Hindu Gods Shiva, and Parvati. Being a child, he loved eating, especially modaks, an indian dessert delicacy. It came to a point where his stomach starting hurting because of how much he ate. While his mom, Parvati, tried to help him, the moon starting laughing at his pain, and as such his mom was displeased by this. She cursed the moon for this behavior, and as such Hindu cosmology and current beliefs has made it that on a certain day of the year, he cannot look at the moon as there is bad luck associated with it. This taught him that, no matter what someone is going through, no matter how difficult it is for them, never to judge them.
My Interpretation: The cosmo interaction is common throughout Hindu Tales, as gods represent some sort of order or natural world phenomenon. The ritualistic nature of not looking at the moon, is associated with the calendar year as he is told not to look at the moon annually. Furthermore, I feel that in terms of the relationship between Ganesha and the moon god, the relationship isn’t hero villain rather as someone who is looking down on you, as a school bully on the playground might do to a kid who just got injured on a slide. Ganesha is seen as the remover of obstacles, so having himself face an obstacle like this sort of puts his ego in a check as he has overindulged in something he loves.