Building hitpoints contribute to the difficulty of damaging a building using catapults. The greater the hitpoints, the more catapults you will need to damage that building.
I'm afraid I do not know the direct correlation between hitpoints and number of catapults needed.