Did they just have extreme foresight about wanting the domain alexa.com or were they genuinely interested in alexa.com as a product? They kept it around for 22 years after all but I can't see how what alexa.com used to do has anything to do with what amazon is doing.
They bought it for data gathering and market/competitor research. I was with Amazon at the time. Was great for keeping track of what products were drawing most traction on eBay (Longaberger baskets and Beanie babies, says my vague memory)