Microsoft didn't buy it from Spyglass, they licensed it and agreed to pay royalties per copy. Then they gave it away for free to avoid paying royalties [0] while illegally sabotaging Netscape's business at the same time.
[0] https://archive.seattletimes.com/archive/19970102/2516784/sp...