The local parks I where I lived in Germany had apple and plum trees. In spite of the fact that all the fruit came in a short time in autumn, I never saw a fully ripe fruit on the trees, let alone a rotten one fall.
Between people and birds, there was nothing left for the rats.