Because its an inflammation. When you get an active vaccine, you recieve parts of a virus/bacteria which your body recognizes as an enemy and starts to fight. This leads to inflammation as immune cells swarm the affected area. Which is why vaccines typically lead to warm and sore areas for a few days.
Latest Answers