I would say they seek attention in different ways.
Elon has shown he can gather investors to sink money into a failed venture (twitter) and skirt the law when it benifits investors (Tesla)
while Trump has shown he can be the beacon of pure capitalism, letting businesses run things their way for quarterly profit and shareholder value with little regard to long term sustainably.
Donald Trump is a showbusiness star and real estate agent running for president, it's not like it wouldn't be a part of the gig for him, up until he stops being a president or presidential candidate. I actually didn't know who Donald Trump was until he began to run for president. Elon Musk is a different story.