Think of a hard drive like carbon paper. You write on it and it leaves an impression on whatever is below. Formating is like removing that carbon paper and throwing it away. The impression is still on whatever is below AND someone can dig in the trash and get the carbon paper out.
It's a very simple process unless you accidently point it at the wrong drive, it just takes a while (days, for the slowest most secure erases).
https://www.lifewire.com/eraser-review-2619133