An organisation providing its employees with residential accomodation is not unheard of, and not at all specific to religion. It is common for governments to provide housing to senior officials (head of state or government, senior ministers, etc) and ambassadors. That doesn't make those governments for-profit, and the President/Prime Minister/Ambassador/etc is not a stockholder/owner of the government receiving a profit distribution from it.
Historically, even relatively junior employees were often provided with accomodation. One of my favourite examples is a couple of unusual residences in Sydney, Australia, which are houses built into sewer vents [1], [2]. The government-owned water utility built these residences for the sewer workers who maintained the vents to live in (along with their families). That didn't make these sewer workers somehow recipients of a "profit distribution", nor did it make the government-owned water utility a "for-profit". (The houses still exist, but are now sold or rented-out to non-employees, since providing employees with residential accomodation is far less common than it used to be–and the sewer vents are still in use to ventilate the main sewers that run beneath them.)
[1] https://en.wikipedia.org/wiki/Corunna_Road_Sewer_Vent_and_Co...
[2] https://en.wikipedia.org/wiki/Premier_Street_Sewer_Vent_and_...