Social networks are/were like a self-learning system optimizing for "engagement" i.e. rage.