According to Maui, they took one look at him after his birth and decided they didn't want him as they refuse to bear the difficulties of raising a child. As such, they threw him into the ocean like he was nothing, though he was saved by the gods, who raised him to become a demigod to provide gifts for humanity.