I had no idea that you "don't think it's for demographics in their favor".
This completely discredits the idea that politicians might consider the electoral impact of decisions they make (or intentionally dont make).
And you've used a buzzword like "dog-whistley" which makes your argument twice as powerful.