The reason for the attention given the wayfarer in the Qur'an is that Islam encourages travelling for several reasons.
A. Travelling for work and opportunity. God says, "and, walk in its [earth's] tracks and eat out of His sustenance."10 "And others travel on the earth seeking from the bounties of God and others fight in the way of God."11 The Prophet (p) said, "Travel so that you become rich."12.
B. Travelling to seek knowledge and meditate on the signs of God in the world, and on His animal and human communities. God says, "Say: Walk on the earth and see how He started the creation."13 "Many were the ways of life that have passed away before you. Travel through the earth and see what was the end of those who rejected Truth."14
and "Do they not travel through the land, so that their hearts (and minds) may thus learn wisdom and their ears may thus learn to hear?"15 The Messenger (p) says, "He who takes a path seeking knowledge, God will make easy for him a way to the Garden."16
and "He who goes out in pursuit of knowledge is in the way of God until he returns."17
Early Muslim scholars provide ideal examples in their ardent travelling in pursuit of knowledge, which is recorded with admiration by contemporary scholars.
C. Travel for jihad in the way of God. This includes defending Muslim land, calling to Islam, liberating the oppressed and punishing those who break pledges with Muslims.
God says, "Go ye forth, (whether equiped) lightly or heavily, and strive and struggle with your wealth and your persons in the way of God: that is best for you, if ye but knew"18 and "If there had been immediate gain (in sight) and the journey easy, they would, without doubt , have followed thee but the distance was long (and weighed) on them."19 God promises, "Nor could they spend anything (for the cause) small or great, nor cut across a valley, but their deed is inscribed to their credit, that God may requite their deed with their best possible reward."20 The Prophet (p) says, "A single departure in the morning or a return in the evening in the way of God is better than the world and what is in it."21
D. Travel to perform pilgrimage to the sacred House of God, the fifth pillar of Islam.
God says, "Pilgrimage to the House is a duty people owe to God, those who can afford the journey."22 "And proclaim the pilgrimage among people. They will come to thee on foot and on every kind of camel; lean on account of journey through deep and distant mountain highways, that they may witness the benefit (provided) for them and celebrate the name of God on appointed days."23
These are kinds of travelling and touring in the land that Islam calls for or encourages, in order to realize its objectives on earth and affirm its teachings among people. Admittedly, there are other reasons for travelling, yet a religion that encourages the above listed kinds of travelling must provide care for travellers, especially those who get cut off from families and wealth. Helping travellers reaffirms the solidarity of the Muslim community, regardless of geographic location or place of origin.