Re-partitioning is a little different. That's like splitting the memory on the drive so you can run multiple operating systems. REFORMATTING however, clears all data on the drive.
Of course, like you said some data could be retained, but only if it was a quick format, or if the formatting was somehow interrupted. ex) user clicks cancel, or unplugs device