When boiled and peeled, the egg's natural protective barrier is washed away, allowing bacteria to eventually enter the porous surface if the eggs sit for too long.
Hard-boiled eggs can either be stored with their shells still on or peeled off. Boiling only a few eggs at a time helps you get through a batch faster before it goes bad.