Creatures without flying can't attack.
The purpose of any moat is to impede attack. Some are filled with water, some with thistles. Some are filled with things best left unseen.