Nothing to do with remote. In-office companies are also filled with people who are not good nor motivated, but need to be there because they have to eat and pay rent/mortgage, and that job was their best option.
For most workers, remote or otherwise, unless they have significant skin in the game in terms of sizable equity, their job is just a paycheck and they'll optimize for doing as little work as possible, for the biggest paycheck possible.
Companies only push for in-office work to better surveil and micromanage workers, thinking in-office builds attachment to the work and workplace, not to motivate people more. You motivate people with money, equity, time off and interesting work.