How does a VPN help when using public Wi-Fi?

As well as usually it does. So, first of all your address will be shifted and thus hidden, after that all the transferred traffic will be enciphered, thus your networking comes to be protected and preserved from any third party interference.