It backs up core stuff and settings to Google then if you reset your phone or flash a new ROM at first boot when signed in it will see you have stuff backed up and attempt to restore that data after a prompt.
That's the idea, though when I flash my San Fran it never seems to do anything.