Because this game, among others, puts pc players and console players together in the same lobbies. No, aim assist does not level the playing field, but it creates the illusion of equity. That's not the only reason it exists, but it's one of the big reasons you can never eliminate it from a game that allows players from all platforms to compete against each other.
Now, if you want a history lesson as to why it has always existed in shooters from the console era then we can get into that too. But it's a whole other can of worms and arguably a little harder to justify.