They intentionally wrote him like that. They changed his origin around so that he wasn’t from Harlem, but was a former cop and the son of a Georgia preacher. He lectures black kids about not using the n-word (but also unashamedly listens to Wu-Tang and Mobb Deep
). He goes out of his way to protect a white police officer who’s profiling him. They even take away the “Hero for Hire” concept sitting at the core of his character in the comics so that he can be, and I quote, “Harlem’s Captain America”.
Basically, the show sets out to sand down all the rough edges of Luke’s character so that he can be safe, nonthreatening, and respectable. The showrunner said that he wanted Luke Cage to be a superhero version of The Wire, but his take on Luke spends zero time actually doing anything to address or examine the systemic issues inherent in the status quo, which is what The Wire is all about. If anything, Luke helps to uphold them.
The show is kind of
when you really think about it.