Perhaps the reason is that the scientific textbooks that I love to buy are often "long-tail business", i.e. textbooks about very specialized topics.
The situation is even more biased towards Amazon if we are talking about used obscure textbooks in good condition for a fair price.