This usage was borrowed into old Spanish as rancher(se), ranchear(se), meaning 'to take up quarters, be billeted'. From this verb, Spanish derived the noun rancho to mean 'a group of persons (as soldiers) who take meals together' and then 'a camp, temporary quarters'.