Its intent is to provide overnight accommodations to patrons who cannot return to their homes the same day they attend the temple.
To ensure that those attending the temple have a place to stay overnight, as they are unable to go back home on the same day.