Why do some monsters have so much HP?

My level 4 party ran into a minotaur and it was really tough to kill. I looked up its stats in the Monster Manual and it apparently has 9d10+27 HP, which seems crazy high for a monster that’s lower level than us (it’s CR 3). What’s up with that?