Although bathroom vanities are not required to be attached to the wall, doing so can help lessen the possibility of pressure applied to the wall-hung piping, which the IRC requires. Water is less likely to run behind attached sinks since they are more stable. Detachable vanities are less expensive and easy to clean beneath.