I believe that trebuchets and mangonels have a longer range than catapults, so they are useful when fighting against more advanced castles, especially if those castles have ballista/catapult towers that could destroy a close range catapult.