Both foreshadowing and flashbacks help readers build interest in the story while developing a plot. Telling stories about an earlier period also help the readers connect with the story teller and get a feel for what the character is thinking
Anne Frank time was still considered courting or supervised dating and parents were always tagging along on the date