Of course wealth does not prevent mental health problems, but poverty exacerbates them.
Whatever that original, and potentially solvable, problem was gets rapidly buried beneath a pile of bills, reminders, and demands.
Mental illness - no job - poverty - mental illness.
It's a death spiral.