The last job I had was nearly five years at Colonial Williamsburg as a scheduler. My work directly impacted the happiness of about fifty people working at the museum. Scheduling them well meant hopefully nobody had too much to do and nobody had too little. It was a constant dance trying to make it all not only work, but work well.
I also derived personal satisfaction from a job well done.
I also like the mission of Colonial Williamsburg. They are the largrest outdoor museum in the Americas, about a mile wide and half a mile tall, with historic and recreated houses and buildings from the colonial era. But not only can you talk to people portraying Nation Builders like George Washington, Thomas Jefferson et cetera, in the 1980s they started a focus on the less savory aspects of our nation's founding by including people portraying enslaved people, with programming educating about those experiences. And about 25 years ago, the American Indian Initiative brought Native Americans into the mix as well.
There's a lot of struggles - as a nonprofit, funding is always a difficult task. And people are people, and people in organizations act like you think they do.
But I absolutely put effort into that job, not only for the sake of the mission of Colonial Williamburg, but also in the hopes of making the lives of the folks I scheduled easier.
But I've always tended to want to do a good job wherever I've worked. Sure, some of the places I've worked I really haven't cared much about, but I still had personal pride.
Now, as I've gotten older, I think I've gotten wiser in general about balancing how much I care to somewhat match how much my employer cares. Were I to find myself in a corporate job today doing stupid corporate things in an environment where nobody ask the employees what changes might make employee lives better while also making the company more efficient...... sure, I'll put in less effort and care.
But your comment was about putting any committment to one's job, and I'd definitely say it absolutely quite depends.