The algorithm is not looking for toxic content to amplify. It's looking for content that would attain the most engagement of its users. If you consider the posts to be toxic, then maybe you are in a minority.
It really doesn't matter what the algorithm is meant to do because it's very obvious the material consequences of what it does.