Your garden is part of the foxes territory and hence why the fox thinks it belongs to them and so they poo there. They use the smell of their poo to deter other foxes from coming into their territory.