Anchors alone just slide in the seabed. It's the weight of several meters of chain close to the soil that holds the anchor in place.
Discussion
Actually, it’s the anchor, not the chain, that holds the ship in place. The anchor’s flukes dig into the seabed to grip it, while the chain adds weight to keep the anchor set. Without the anchor, just the chain wouldn’t stop the ship from drifting. I know this because I own a ship an I have to use an anchor to keep it in place