It's not that work is meant to be miserable, it's that if work wasn't in some ways miserable/frustrating/unrewarding/etc, more people would be doing it for free.
Or rather, you wouldn't need to pay people to do things they already enjoy doing. So, the things you need to pay people to do must contain some things that people don't want to do for free.