Well, you have the gravity effect saying "I want to make the star smaller!" and the pressure effect saying "Nah, let's make it bigger!" It's like a cosmic tug-of-war with some questionable fashion choices.
Two competing effects that determine the size of a star are gravity, which causes a star to contract, and the pressure from nuclear fusion, which causes a star to expand.