> At worst, they are actively working to make their own job redundant and when they're fired, they will own nothing of what they built. All the money from their work will go to the owners who fired them.
Except that's the case with literally every meaningful information-work job. Your goal is to obsolete yourself. If you do it well then your success becomes your calling card for your next job. Your career is a series of such jobs.