The best answer to the question is:
he does not want her to feel trapped in the hiding place.
Mr. Frank encourages Anne to write in her diary as a way for her to express herself and cope with the difficulties of living in hiding, helping her to manage her feelings of isolation and confinement.