After crashing the Spear of Amity on the moon, Pear Butter tried to get back to Equus for the last few years, losing one of her legs in the process.
After finally finding the last resource to bet back, she gave it to a creature native on the moon, sacrificing her only way back while singing a song to its child.
If it isn’t obvious, this is a pony version of a scene in the Ducktales 2017 reboot just with Pear instead of Della.