The funny thing is that, for me personally, I actually think this was an attempt at a virtue signal. He wanted to bring awareness to the unconscious racism bubbling under the surface of many white people, especially at this time in Trump's America. As a celebrity he could use his platform to bring change.
It could have just been some weird spontaneous thing that he just felt like blurting, but I don't know.