Indeed, they’re built from the ground up to promote engagement with no regard for positive or negative impact. It so happens that humanity’s worst impulses drive a feedback cycle that’s wonderful for engagement but terrible for humanity.
It’s a classic case of amoral objectives leading to immoral outcomes.