Economics pays a big role, though. It's most likely the nature of the jobs people perform - those who in higher paying jobs largely (but not in all cases, eg. health care) have the means and the nature of the work that allows them to stay at home and avoid mixing with others. Those in lower paid jobs in many instances do not (for example those in cleaning jobs cannot WFH obviously).
Worldwide, in developed nations, it seems poorer areas have suffered more. In New York, the poorer boroughs and neighborhoods fared much much worse than the wealthier ones. In Melbourne's second wave, poorer areas suffered more, that is beyond dispute, the evidence is overwhelming. There were very few cases in suburbs like Brighton, Box Hill, Toorak, or Camberwell. It's not that the disease picks on poorer areas, or that people behave any differently, just the nature of the work people do.