Usually, Cockatiel parrots flap their wings because to do exercise. This is the normal cockatiel behavior and almost every cockatiel parrots do this.
When a cockatiel parrot is living in a small cage, it does not have much space to open its wings for proper exercise.