I don't think it's work specifically that's tied to morality, but production. If someone is obviously consuming more than they're producing, then they're going to get negative attention. In 2022 it's not always clear exactly how much someone is producing, so it's generally assumed that someone with a full time job produces enough to cover their needs while the unemployed surviving off of welfare do not.
We even make allowances for people trying to reach net positive production. Students, for example, aren't typically looked down upon. It's only people who are actually lazy and not doing anything useful with their lives that are looked down upon, and rightfully so.