Some animals exhibit territorial behavior as a way to defend their resources such as food, water, shelter, and mates. By establishing and defending a territory, animals can ensure they have access to these essential resources, increasing their chances of survival and reproductive success. Additionally, territorial behavior can help reduce competition within a species and provide a sense of security and stability for the individual animal.