If your dog is peeing outside of their crate, it could be a sign of a few different issues. Here are a few things to consider:
Medical issues: If your dog is suddenly having accidents outside of their crate, it's possible that they have an underlying medical issue. Take your dog to the vet to rule out any potential health issues that could be causing this behavior.
Size of crate: If your dog's crate is too big, they may be using one end as a bathroom and sleeping in the other. Make sure the crate is an appropriate size for your dog's needs.
Training: Make sure your dog is properly crate trained. This means that they view their crate as a safe and comfortable space, and are not using it as a bathroom.
Schedule: Ensure that your dog is being taken out frequently enough to relieve themselves. Puppies, for example, may need to go out every 1-2 hours during the day.
Behavioral issues: If your dog is still having accidents despite being properly trained and having no medical issues, it may be a behavioral issue. In this case, consider seeking the help of a professional dog trainer or behaviorist.
Remember to remain patient and consistent when addressing this issue with your dog. With time and proper training, you can help them develop good bathroom habits both inside and outside of their crate.