Working from home has its merits and demerits.
MeritsComfort: Some people find their homes more comfortable especially introverts. These set of persons are more productive alone and in a quiet workspace.
Flexibility: Working from home makes work less rigid. Workers don't need to be put in an office space that makes them work like prisoners. But at home, you can decide to create a workspace in any location of your home based on your mood. Your workplace can be in your garden on a very sunny day.
Save cost: Workers will have to consider buying work clothes and other accessories. Transportation costs and office space rentals are also expensive. But working at home might reduce these expenses.
DemeritsSpace: If you live in a small or uncomfortable apartment, working from home might be a burden.
Family: If you have a family that has children, they might be a distraction. I will never consider working from home because of the young children around me.
Facilities: You might not have all the necessary work tools if you work from home. The office will always be better equipped.
Elon Musk considers working from home to be morally wrong. His reasons are that while you are working from home, the people who make your vehicles can't, as they have to be at the factory. In addition, while you are working from home, the delivery person cannot work from home as they have to deliver your package.
This is not a matter of morality but the kind of job, the choice of workers, and the level of productivity