It's generally not illegal to raise your prices or set your prices at what your competitors are charging. There are variety of factors that influence a price of an item.
The issue is that the FTC is alleging that the algorithm artificially boosted prices and keeping the prices that high when competitors matched the price.
While it's not outright collusion on price fixing, it does reek of using monopolistic practices to fatten the bottom line.