What causes 'bad sectors' on a hard drive?

any drive gets bad sectors eventually.