These problems are not wide-spread in most underdeveloped countries, even Muslim-majority ones.
I don't want to "whataboutism" here, but to offer a comparison: the US clearly has a problem with police violence, but we don't judge the entire country's population by it.