The statement that best explains Coelho's choice in The Alchemist to have the boy robbed as soon as he arrives in Tangiers is:
It highlights the dangers of being in a new and unknown country.
This event serves to illustrate the challenges and risks that come with venturing into unfamiliar environments, reinforcing the theme of the journey towards one's Personal Legend and the obstacles one may face along the way.