Dark coats may have helped the earliest mammals hide from hungry dinosaurs
The spots and stripes familiar to us today didn't arise until later in mammalian evolution

Small mammals during the Mesozoic Era (some illustrated) may have had uniformly dark coloring, allowing them to blend into nocturnal environments.
Chuang Zhao, Ruoshuang Li