A VPS is used for running your trading robots / EAs on a remote server 24 hours a day, 7 days a week, so that you don't need to keep your own device turned on.
Another advantage is that you can choose a VPS located near your broker's servers to significantly reduce trade execution times. Which is especially important for scalping EAs.
By the way, most forex brokers' servers are located in London.