Fact 1: an animal needs to attract a mate to reproduce. 
Fact 2: Mammals are animals which raise their young on milk and typically give birth to live young.
A mammal needs to attract a mate to give birth to live young.