Are you reffering to a fiddler crab? If so they need to beable to get out of the water somehow, it isn't require but they won't live very long if they can't get out.
there all over here, make great bait for fishing, and in teh wild they spend most of there time out of water or down there holes in a small puddle at the bottom