All our thoughts, prose and poems are heavily influenced by thoughts travelling through the ether, intuition and modern media or handed down. So to with Religion.
Still, the New testament took mostly from A God-Soul called Jesus, The Christ, and the old Testament has a compilation of many prophets and certain aspects of Judaism. As in all Faiths, there are also many myths, allegories, metaphors and parables, etc.
Lord Rama and Lord Krishna were nearly 10, 500 years ago, and Hinduism has its own story. Many western scholars and Theologians have borrowed from their thoughts.
No problem here, it seems a necessary aspect of Spirituality to repeat itself. We forget so often who we really are!