In the Trek universe, even on Earth, a capitalistic society still exists. We just don’t really see that side of it as much.