Unlike when you use an app, for the most part, because we're not psychopaths, living with someone every day for months or years causes us to feel a great affinity and care towards them.
I live in a developing country. Some people treat their live-in staff badly. But for many others, this is not the case.
Imagine you are a high-earner and hard worker and so you and your wife get a live-in nanny to assist with childrearing duties. Often, two or three decades later, the live-in nanny is ready to retire, but your children (whom you love) have come to see her as a member of the family, or even as a second mother. Surely you also do. How can you live with someone for 20-30 years and not care about them? You might thus often take care of her for the rest of her life, even though she has her own savings.
(No, I do not have live-in house staff. But I've had the same maid for 7 years and she knows she can come to me if she needs anything.)
How one treats someone else is probably mostly just a reflection of the individual. But it's harder to disregard someone's humanity when they live in your house and you've know them for years.