Exactly, money is only useful for the exchange of resources. It's the resources we actually want.
In a world of AI those with access to AI can have all the resources they want. Why would they earn money to buy things? Who would they even be buying from? It wouldn't be human labours.