docks often float because they are commonly constructed on bodies of water that can fluctuate dramatically in depth. Used most interchangeably with wharf, piers are often longer and communal.