On Uniden scanners, it "kind of" goes on the SD card. When the scanner boots up, it compares (I think) the firmware in the scanner to the firmware on the SD card. If the SD card version is newer, the scanner loads the newer version into the scanner.
That's how one can update the firmware in a mobile mounted scanner without having to connect a computer to it.