Just because occupations have popped up to replace these lost jobs in the past doesn't mean that they will in the future.
As machines become more and more capable, they can accomplish more and more of the things that previously only people could do, and will presumably tend towards being able to do anything a human could do. As we get closer to that point, it's quite possible there will be increasingly large sections of the population who find themselves effectively unemployable as there's very little they can do that cannot be done more cheaply by a machine.
It's nice to think that the new occupations will pop up to give us all something to do, but I think to believe that is basically an article of faith. I don't see any evidence that suggests it's guaranteed.