Why is shahran not a direct object in sāfartu shahran?

Al-Mafʿūl Fīhi: Adverbials of Time and Place