IFT,
I don’t believe there is anything that states, in the US anyway, that an organization must provide shelters and other social programs to qualify for tax exemption. That would be overt discrimination as not all charitable organization provides the same type of services, nor are they all the same.