Why is a capsule advantageous to a bacterium?
Capsule allows bacterium to "hide" from host's immune system. Protection of bacterium from desiccation can be achieved either from cell wall or slime layer or capsule.
Therefore, protecting bacterial cell from desiccation is not the main function of the capsule.