Yawning addresses respiratory needs. Yawning causes you to take in more oxygen and elevates your heart rate. So, some experts think the action is designed in part to help clear toxins out of the blood and increase the flow of fresh oxygen.
Yawning cools the brain. There isn’t much evidence for this theory, but some researchers believe you’re more likely to yawn when your brain is slightly overheated.