Why did some dinosaurs have sharp teeth?

Meat-eaters needed blade-like teeth to slice prey and crush bone.