A bar of soap needs somewhere to dry between uses. Soap dishes keep it off the basin or worktop, helping the area stay cleaner and less slippery.
Cloakrooms and bathrooms often look tidier straight away when the soap is not sitting in a puddle by the sink.