He was her firstborn, and by rights the Empire would be his.
There was more to the story than he let on to Buzz or XR. Commander Nebula had history with XL, and he hated him all the more for it. The worst thing that robot had ever done was make him care.