If the toilet were really smart it would be studying up on nuclear physics instead of listening to pee and poop.
The processing goes on at the Amazon servers. Alexa just relays all audio in your house to those servers. The servers control your devices through the WIFI router without Alexa’s intervention. You are monitored and controlled by people whose intent you do not know.