is it better to have a good thing and lost it or never to have had it?

why do loving and losing still shape us?