Elves and humans fought a war against one another, centuries ago. The elves lost. Since then, elves in Thedas haven't had a homeland, and we haven't been treated well by our conquerors. Things have gotten better in recent times, but it's a slow process.