That's right. Squatting isn't just a mating reflex. Hens will squat when suddenly threatened by anything unexpected from high up.
Just having a human or a dog suddenly appear behind them will trigger this response. I've been outdoors with my hens at my feet when a hawk flew over and swooped...