It could be a curiosity thing or just kind of a habit. I have a hen who does this occasionally and I've chalked it up to her being curious. If you want to stop it then I'd suggest flicking there beaks gently every time one of them pecks you. They'll get the message.