He’s a foil intended to prove that Russian ‘elections’ are indeed fair, that people do have a choice and that Putin will commit to the mandate given to him.
I think the gauging might be part of the reason too.
But Putin is very sly and careful around dissenters. There’s a reason Navalny isn’t dead. He’s careful not to create a martyr.