What Makes a Mammal a Mammal?

A mammal is a mammal because they were not born from eggs or out of nowhere. A mammal is a mammal because they were given birth by another animal. The hosting mother carried its baby inside for a couple of months and then gave birth to it the same way a human would. That is the definition of a mammal.