You're correct that Amazon should be smarter about some recommendations. I'd say give them the benefit of the doubt in that they may have found an algorithm that works most of the time (or at least when it comes to their bottom line), but edge-cases stand out to us.
Still though, there could be a method to the madness. You bought a printer - are you setting up a home office? Perhaps you want a second printer for upstairs?
Also, you just bought an HP brand printer. Were you replacing a printer that just ran out of ink? Maybe THAT printer was a Brother printer. Perhaps this Brother ink cartridge can extend the life of the hypothetical printer you may be replacing...
My point is that I can contrive cases where the recommendations might make sense - not to you, specifically, but to a large enough cross-section of consumers.