Anarchism, Cities, and Decentralisation

I have heard anarchists online mention often that under an anarchist society, we would not have the kind of densely populated urban cities and instead people would spread about more.

Is this true? If so, why? What about capitalism or previous economic systems incentivised the creation of cities and how would anarchism prevent that?

(For extra context, I am asking about this in relation to urban migration and the capitalistic rationale for why cities have expensive property rates – higher demand. If we abolish capitalism, would that eventually stop urbanisation and the high demand of living spaces in cities? If not, if densely populated and desirable urban centres would continue to exist, how would allocation of housing occur in a just and fair manner?)