I've always thought that Apple is driven by wanting to control its own destiny and not have the short term interests of the market dictate its decisions. That's why it is stockpiling cash and hesitating to pay it out to its shareholders.
Apple and Tesla just want to make great stuff. Not just great, esoteric stuff, but products that are also accessible to the mainstream. The profits are just a way of keeping score and giving them options for the future.
They're kind of like the Beatles, who as an organization always knew how to do things big commercially. But commerce is never what drove The Beatles. They understood that winning in the marketplace gave them more leeway to dream bigger and bigger.
It's easy to say, "why would a company want to exist besides to make profit?" But I think a company can be a creative outlet for its employees and shareholders, just like any other medium. The profits just ensure they have more creative control in the future.