it could be due to wanting to breed if the snake is of breeding age and capability. If he's a young snake then breeding is probably not an option. Some snakes will "Hunt" when hungry, and Corn Snakes are almost always hungry. And finally, some Corn snakes are just very curious. My snake goes through spells where he roams a lot, and then other times he stays hidden. He usually hides more when he's getting ready to shed. (That's usually how I know). Otherwise he's out and about.