The world of Star Trek has cheap, limitless power, and the ability to turn that power into any physical goods they want. There seems to be no need for anyone to work who doesn't want to.

Somewhere between the present and that fictional future there had to be massive and painful societal change. That would make an interesting story.