I don't recommend holding loyalty to any company. Maybe to co-workers(s) or a direct boss (IE, if they leave, maybe you leave too. I've seen this happen) but certainly not to the employer, since it will never be reciprocated
However, there is a difference in appreciating a situation and being professional vs being ignorant of the ultimate fact: at any time, the business can just let you go, either via layoff or other means. Its best to be aware that unless you're in the C-suite, you're a cog in the machine.
That however, is not an excuse to do bad work or act unprofessionally
Well, technically that would be a market inefficiency, so we should be encouraging employees to view their employers as fungible and switch jobs as soon as it's advantageous to them. If your employer is trying to keep you around through social ties instead of competitive compensation you're being taken advantage of.
Additionally, because the social fabric is weaker around remote workers in a hybrid environment, there may be a perception of them being less likely to remain out of any sense of loyalty or obligation. This seems like a potential stigma that remote workers would need to overcome in the absence of explicit inclusivity efforts by leadership.