SD Card Recording resolution

Hi There.
Can anyone tell me if the resolution that is recorded to the SD card is dependent on the wifi connection? I have one camera that seems to have issues streaming at HD consistently but was surprised to see that the recorded video on the SD card was the same? If the camera has local storage why wouldn’t the recorded image be at the highest resolution? That way if you had to download it for evidence you would have a great recording.