Why would a bullet pop out of the chamber of a 22 long rifle while trying to cycle the gun?

Sounds like the gun already had a round in the chamber. One should always make sure the gun is unloaded before storage.