The other commenters here are right about Amazon’s initial methods, but I’m also going to highly recommend Cory Doctorow’s Enshittification for a detailed explanation of how this happens (including a breakdown on Amazon specifically) and what to do about it.