What do you think of people who say mental health is no excuse not to work?

I know mental health affects everyone differently, but it makes me feel so bad when I see people comment that they have multiple mental health issues and they still get up and go to work every day. I’ve been trying for several years to get a paid job and not a single one of them will take me on, so I’m trying to volunteer instead. Waiting to hear back from a voluntary job right now.