Amazon is a party to interactions with their website. That gives them standing to sue over those interactions. Whether they can sue Perplexity specifically is what was being debated in these motions.
Not all of us have the same bathroom fetish as Bezos.