India at the time of the Buddha was favorable to wandering ascetics. People were culturally conditioned to donate alms. And, indeed, alms-seeking is required by the vinaya for monks, so they can't live in complete seclusion from society.
Society today is very hostile to wandering folks. Many western monastics independent of monasteries (especially female monastics) have a hard time getting alms without a lot of organization.