Are there other dogs nearby, especially if they are the opposite gender of your dog?
Are there any small animals in the neighborhood, like cats, rabbits, or squirrels?
Are there many thunderstorms (or other sources of loud noises) in your area?
If your boy dog can smell a female nearby, especially if she’s in heat, he will put in a lot of effort to jump the fence and go meet her. Females, especially females in heat, may also escape to go find a suitor. Neutering your male dog and spaying your female dog can help reduce this problem but it won’t necessarily prevent your dog from ever deciding to wander.
Many dogs readily jump fences or escape the yard to chase down a potential prey item. While this is a bit more common in prey-driven breeds like Huskies, almost all dogs naturally enjoy chasing small animals. Leaving your dog unattended to chase squirrels or bunnies will almost always result in a dog who enjoys this hobby more and more. Supervising your dog, giving him something better to do, and improving your fencing can all help prevent your dog from escaping to chase other animals.
Even the most well-behaved dogs may try to escape if they’re scared. This problem is especially common during summer thunderstorms or fireworks. Securing your dog during thunderstorms and fireworks will help keep your dog safe. Keep your dog inside and do your best to soothe her fears about loud noises with calming treats, white noise, and ThunderShirts.
The number one reason why dogs run from home is boredom. If they’re left alone in the yard with nothing better to do, and it’s not that hard to get out they will take themselves out on a little walk around the neighborhood. Solve this by supervising your dog, giving him proper exercise, and giving him chew toys to keep him busy.
https://www.thesprucepets.com/why-dogs-run-away-4587466

Sreten null
Hi! I’m Sreten Filipović. I graduated from the Faculty of Agriculture at the University of Belgrade, with a master's degree in Environmental Protection in Agricultural Systems. I’ve worked as a researcher at Finland's Natural Resources Institute (LUKE) on a project aimed at adapting south-western Finland to drought episodes. I founded a consulting agency in the field of environment and agriculture to help farmers who want to implement the principles of sustainability on their farms. I’m also a founding member of the nonprofit organization Ecogenesis from Belgrade whose main goal is non-formal education on the environment and ecology. In my spare time, I like to write blog posts about sustainability, the environment, animal farming, horticulture, and plant protection. I’ve also published several science-fiction short stories.
You can find me on LinkedIn at https://www.linkedin.com/in/sreten-filipovi%C4%87-515aa5158/