Like any other fish, bettas do not yawn because they are tired. Most probably it is related to poor quality of water in the tank and low level of oxygen. Most likely it is related to poor water quality in the tank and low oxygen levels. It can also be a sign of distress caused by an overcrowded tank or aggression from the other fish.