I think doing things in the real world that you believe to be useful can provide meaning (e.g., baker making bread that that you see people enjoy, or a doctor checking a kid and being thanked by parents). However, to me, it is orthogonal to working with physical objects. I am perfectly happy working with text on screen that produces plots and formulas as long as I convince myself that those could be useful for something I consider important.
The big problem I believe is the fact that many people know that what their work will be used for is useless to a society (or even mildly harmful). I suspect that people working on targeting ads to sell unneeded junk, hooking kids on time-wasting apps or winning in a zero-sum game of HFT know deep inside that their work is a waste at best.
This can be rationalized away for a while, but not being able to answer "what am I doing this for?" can eat one up long term. My 2c.