Does Terraria have any Lore?
At this point, the only real lore is that the world is suffering from Corruption/Crimson, an ailment that The Dryad would dearly like cleansed. She implores you to do so often, when you talk to her.
Aside from that, there is little yet developed about the world, though that hasn't stopped fans from filling in the gaps on their own!