Lets take this to the extreme: only 2 people remain with capital and AI all the rest are replaced.
Now these two people how do they make money? they pay each other so there is no extra value created thus the amount of money as value symbol remains constant.
But here is an even more interesting question: As their AI can create anything why would they pay each other? So why do they need money?