Crannogs: Neolithic-Era Artificial Islands
amusingplanet.com
amusingplanet.com
If it was protection from raiders or animals using those stones to build a wall would make more practical sense. Im guessing they were probably done for a religoius or spiritual purpose
I think it's rather likely that people were protecting themselves from opportunist raiders than a large group of attackers.