A lot of things can affect your connection speed while using WiFi including how far away you are from the main location of the signal; the direction of the modem; building layout and walls and other things between your device and modem; the number of wireless devices using the same hotspot.
See our WiFi help page for more info.