One person's undercutting is another person's competition.
There's nothing wrong or anti-competitive about undercutting another retailer. At some point, you can get into anti-competitive predatory pricing or "dumping", but I don't think anyone is credibly arguing that Amazon is dumping product below their cost.