Ping rate depends on 2 things: server location and the router designed by the ISP to that server.<br />When you do a speed test, the tool will select the nearest server by default. Whereas, when you play CSGO, you get connected to the nearest gaming servers.<br />For example, you're in India to do a speed test, it usually connects you to the server situated nearby while playing CSGO, it can connect you to Asia server which would be around 1000kms away from your location. As a result, gaming ping is high.