I had a hen who would do that as a pullet, which made me think she was a rooster… she just turned out to be a feisty and more dominant hen xD
Do you have a rooster?
Sometimes hens tend to pick up more rooster-like behaviour if there is no rooster around.