Yes, but Ramayana is a very big epic and one person cannot write such a big epic with hundreds of characters, with so much details so perfectly with out any inspiration. Ofcourse there are metaphors. But Ramayana is itself in form of Kavya(poetry) and people tend to take everything literally because without exaggeration there is not poetry and that if you consider as lie then it is your ignorance.