It detects the region of the inserted disc (NTSC-U, NTSC-J, or PAL) to prevent foreign games from playing on unauthorized hardware.
Files are generally uploaded by preservationists and are free from the malware often found on "warez" sites. ps1 bios archiveorg link