Quite some time ago, he understood that he was one of Hermione's supporters. Like a stepping stone from Hermione's problems from everyday life and from working in the Ministry. He helped her acquire distance and relax.