Looking for the etymology of "Quarters" as in "The officers' quarters are near the bridge."

Thanks