Massive stone structures in Saudi Arabia

The experts always think ancient ruins were from rituals. I wonder if they were old corrals for livestock ?