In a word, it helps your computer run more efficiently. It gets rid of stray files that you don't need and organizes your files by putting similar files together. It is a good idea to defrag occasionally to keep your computer operating at it's best. Here's some more information (it does get a little technical).
Defragmentation - Wikipedia, the free encyclopedia
Hope this helps
Dan