Virus that crashes Windows OS doesn’t work on Android OS

Recently I had to download a file from a USB that I can't get anywhere else. Problem was, this USB was corrupted with a virus or a worm that crashes the computer's OS the minute it is plugged in. I rather needed this file badly and as it is saved on this USB stick only, I had a dilemma. Risk crashing my OS, or be unable to get the file?
Then I had an idea. I plugged the USB on my tablet which had Android as its OS and copied just the file from the USb to my tablet's memory. I was then able to get the file from my tablet's memory, with no virus or worms. Could it be that the virus or worm that the USB had works only on Windows OS, and not on Android?
The tablet did not crash or slow down, and no virus alert came up.
What do you think of this?
Thanks.
