Too warm, too stressed, too new of an enclosure, too hungry... A stressed snake is a snake looking for a place to be less stressed. If they get too hot they will look for a cooler spot but if the entire enclosure is too hot then they have no place to go. If they don't have the tank setup so they feel safe and secure they can try and get out to find a secure place.
If everything is on point but you changed something recently even if a new substrate, that can trigger it. Any time I swap out substrate in any of my snakes they go for a roam as if to check the change in smell and to see if anything was stolen.
Food related movement is often later in the evening for nocturnal snakes like ball pythons so during the day is often them not feeling safe in their burrow.