Someone would buy it off a shelf at Lowes, would take Lowes to court, and Lowes would lose. It wouldn't be profitable.
Conversely, if someone bought a dodgy product from a drop-shipper listing on Amazon and got hurt by it, do you think that Amazon would be successfully sued? Empirically, that happens but they're still profitable and and still not refusing to list products for safety except in the most egregious circumstances. Would you sue the drop-shipper? They'd probably disappear or have zero assets. Would you sue the overseas manufacturer? Good luck with that!
The fact that it's profitable for Amazon and not for Lowes is exactly what the parent meant when they said "...it doesn't seem right that Amazon can sell these to people where Lowes and other hardware stores cannot."