It's pretty easy to imagine a world in which, for example, UBI is available, but it's contingent on sterilization.
Aside from being more compassionate than the Terminator movies, it might simply be the cheapest way to handle humans in a world where we've become a liability.