Except he was playing by the rules, and got shafted anyway. They erroneously price-matched, making his book free, and depriving him of royalties. Their mistake; his loss.
I'm sure there's an area of the contract that he agreed to when he listed his book that Amazon is not liable for pricing mistakes.
So there's the trade-off: you're listed in Amazon's market that is seen by more people than probably any other e-book market and you're getting royalties directly, but if Amazon screws up, too bad.