There is no complete understanding of why we yawn. Various theories have been proposed and various studies have been undertaken to determine why we yawn.
No single theory has gathered overwhelming support, so there really is no agreed upon reason for why we yawn.
This entry in wikipedia is a good read and explains in detail what I wrote above. Enjoy!!
https://en.wikipedia.org/wiki/Yawn
Latest Answers