The first tragedy that Shaw mentions is losing your heart’s desire. A desire is something that you want strongly. When you lose something that you want strongly, it’s devastating. That is why he is calling it a tragedy. When you lose something that you want more than anything, that will cause a lot of pain.
In addition, the next tragedy mentioned is gaining your heart’s desire.