Because nobody was 'replaced' by electric lighting. Motor vehicles did take jobs, but they created more jobs. And you could argue AI will lead to that too, but the primary goal of AI is complete invalidation of human work and creativity. Not only that, the fields AI touches upon are sweeping and all-encompassing. AI may create more jobs, but I'd be skeptical if it leads to more jobs than it takes. Unemployment is already a massive issue these days, and AI certainly doesn't help.