Some stories are rooted in European white ethnicity. The legend of King Arthur. Norse myths. Much of Shakespeare. European history.
These woke films aren't even engaged in color blind casting in search of the "best actors." They're intentionally seeking to rewrite Europeans stories and histories. The hope is that future generations will think that Europe always had large numbers of Africans and Muslims, and that European achievements are African and Muslims achievements.
There was a recent movie about Anne Boleyn, in which she was portrayed by a very African looking African. Sorry, that's not history.
I agree that many times they are simply doing it for shock value or to push an agenda. And when they do it for that reason, the movie typically fails.
But, if they simply pick the best person for the role regardless of race, it can sometimes be surprisingly good.