It may be the breeding issues the others have discussed, but I have also seen some of my birds do that when gnats are around. They tried to get them. It's hard to see the gnats so it looks like they are doing odd things, but they are just going after the bugs. Just a thought if you should happen to notice it again and can check. Best of luck with your feathery friend!