Does bathroom vanity need to be attached to wall?

In most cases, the bathroom vanity is installed against a wall for ease of water installation. However, you can go for freestanding vanities which are more popular and they usually have already open space on the back.