Speaking personally I'd rather pay a few dollars than risk my PC getting Good Old Virusy, which may or may not be a real risk, but is certainly an idea that puts me off pirating software.
Now I'm wondering if you could put e.g. a Windows virus into a Gameboy game, such that if someone did the opposite of what we're talking about and ran it "natively" then they'd be infected. Afaik this kind of native execution as an alternative to emulation is being done via recompilation projects - see e.g.
NES - https://andrewkelley.me/post/jamulator.html
N64 - https://deepwiki.com/Zelda64Recomp/Zelda64Recomp/3.1-recompi...