The cosmos (God & angels) in the opening takes time to prep George's guardian angel, Clarence, with George's backstory. Flashbacks are used to establish George as wanting to do nothing more than travel the world and seek adventure abroad, but his obligations at home prevent him from doing so. There's a good breakdown of this portion of the plot here: https://en.wikipedia.org/wiki/It%27s_a_Wonderful_Life#Plot