You don't necessarily need roommates to solve loneliness
Maybe a dormitory arrangement would work better? One of my distant uncles live in a small apartment with private bedrooms/bathrooms and a small kitchen but it also has a large shared mess hall downstairs for everyone to eat.