It isn't just yawning that's contagious, daylia, so are most other behaviours.
Arguing, for example, is contagious. (this forum has proven that beyond any shadow of a doubt!) So is smiling. Also laughing. And hurling insults. And being competitive. And so on...