Minor nit: is there evidence that dinosaurs evolved into monkeys? didn't they all get wiped out by an asteroid?
AFAIK, mammals existed during the dinosaur era. But they occupied a tiny ecological niche and were physically tiny. They survived the asteroid hit because they were tiny.
The absence of dinos enabled them to eventually occupy niches occupied by dinos.