There is no single scientific consensus on why we yawn !!!
It is generally considered as involuntary reflex controlled by hypothalamus in brain that serves both physiological and social functions.
For years , people believed we yawned to get more oxygen or expel carbon dioxide.
But breathing more oxygen does not change how much a person yawns !!!
Popular theory suggests that yawning helps regulate body temperature. The stretching of facial muscles increase the blood flow to brain.
Contagious yawning is associated with empathy. People who are more socially attuned are more likely to catch a yawn from someone they are close to !!!
Yawning does not appear in new born babies.
It appears in chimpanzees, dogs, cats, wolves, lions and one species of parrot.