The difference between the vaccines you're talking about lies in their development time: The one in school have been (tested) around for decades before getting mandatory.
The COVID vaccines have now been around for 4 years now, and there is no evidence they are appreciably more dangerous than those other vaccines that took longer to develop.