First magic with an emotional affinity comes from somepony experiencing that emotion, the stronger the emotion the more is released. I don't know why the beings of this world would evolve like this. Either that or it's some type of unintended effect from having magic.