Official Apple installers are cryptographically signed. Unofficial ISOs have no checksum validation, so you can’t verify if the file is corrupted or tampered with.
A 2021 analysis of “Lion 10.7.5 ISO” torrents found that 1 in 3 contained a known OSX/Shlayer trojan variant. mac os x lion 107 5 iso download repack link