There are different ways leaders act depending on the level of the majority they have.
This is an accepted behavior.
The smaller the victory the more the winner has to work and compromise with the opposition.
It works in reverse for the loser.
It's not a stated rule but it's a generally accepted mode of behavior in "democracies and republics"
Compromise, if both parties get some of what they want, isn't a dirty word.
USMCA would be a good case in point.