Remember Ram was an incarnation of God Vishnu and not Vishnu himself. God has never been on this earth. The almighty has always sent his messenger. Its the same like "Mohammed the prophet being messenger of Alah and not allah himself. Ram, Krishna all were incarnations and not God. This has been clearly mentioned in "Gita".