Why is that, do you think? What other singular-plural mismatches are there? Is this unique?
Now, maybe I'm the minority here, but I've not heard many people use the shorthand "K's" for kilobytes, but I have heard "kb's" as a shorthand, and "kb" would be pluralized in the same way as "megs". "Forty kb's" is definitely something I've heard before.
Similarly, we would not say "The file is forty Ms", which would be parallel to forty "K's".