I choose to do what I do because it is important and it pays well.
You prefer to slum in your basement apartment and avoid sunlight.
I prefer efficiency over theater, as an engineer you should appreciate that. In the 1930s and 1940s and 1950s science and technology and futurist journals often predicted a world where commuting to an office would no longer be necessary, I can dig out evidence of this if you want.
This was particularly true of the computer related work, where remoteness was no impediment to working and this idea has continued to develop with the internet and services like email and so on.
So "working from home" is not new and in fact has been a goal for decades in the technology industries.
I no longer waste two hours a day and instead use those hours to get more work done I no longer get interruptions as I work either and that enables me to maintain focus on the work without the cost that distractions cost mentally.
Lots of studies have been done about this and the data is out there for you or anyone to inspect.
Now
can people slack off when working at home? Yes they can but I still have a boss, I still have targets and deliverables and deadlines and if these are not met then that would be noticed.
Anyone who works in software also well knows that "slacking off" (unproductive time) is always present, people often chat around other people's cubes and so on.
Morons like Elon Musk are simply unable to manage well in a remote world, they DO NOT KNOW how to manage people in those circumstances, so do not mistake Musk's pontifications as important or accurate, when he complains about remote workers he's really revealing his own poor management skills, it's very well known in the tech industry that a most software workers make poor managers.
I once worked at a successful and very conservative company named
Faithlife, run by a former Microsoft worker. They had remote working down to an art ten years ago when I was there and did not insist on people being in the office, this was a very money and cost focused company too.