Why are hard drives formatted capacity less?

i was wondering because all of my flash drives and hard drives have less space then advertised
5 answers 5