What he cared about was identifying an issue that he could exploit to his advantage, no matter how divisive—in fact, the more divisive, the better, because it would arouse strong feelings for those who took his side.
This is just the way he is as President. He is the Divider-In-Chief!