Industrial automation is only getting cheaper, more capable, and easier to use with every passing year. Things you "know" from even a couple years ago don't apply today. The rate of progress is pretty incredible.
I know those aren't robots walking around the floor - but that level of automation to load/unload parts is a huge thing to "keep the CNC machines fed" in more and more factories.
Look up Fanuc robots on youtube for tons of examples of automation. https://www.youtube.com/watch?v=IKrlXyLQbwM is a cool example of 2 robots on a rail servicing 4 CNC machines. What's neat here is that it's taking parts from machine to machine to work through all manufacturing steps.
None of this is exactly that "high end", either. Plenty of high end hobbyists/micro-businesses run Robodrills (like the last video) in their home garage. The UR robot in the first video I linked is super accessible as well and showing up in more and more small (<10 employee) machine shops.
There are times the math works out for the robot but it's not very often. Keep in mind the robots need to be managed - someone has to make sure they're working and be able to take over when they go down.