One thing to remember is that many of her “extreme” positions were taken at a time four years ago when the progressives were at their “peak.” It came on the heels of the George Floyd killing, Bernie was leading after the first 3 primaries, and there was reflexive push to the far left to counter Trump’s regressive, Pro-police agenda when a lot of Americans were hurting.
I think Kamala tried to carve out her own space to the left of Biden and Buttigieg, but not as far as Bernie and Elizabeth Warren, and she struggled to articulate what she actually stood for. And because of the anti-police sentiment at the time, her career as a hardcore prosecutor worked against her.
Now, after four years of learning how to be “presidential,” and the fact she only had one opponent, she can lean into that law and order persona and not feel obligated to move too far left.