This is an example of Emotional contagion theory.
The emotional contagion theory suggests that the emotions and related behaviors of one person can directly trigger similar emotions and behaviors in other people. For instance, when some people laugh, clap, or cheer on the speaker in a crowded arena, it is more likely that others would instinctively follow along with their actions.