Mainly to keep dirt and grime out of the firearm. Also, they have some that incorporate little tools in them. One tool stored in it is the little screwdriver for rear sight adjusting. Think there's 2 or 3 total? At least 2 though. If I can remember where I last saw them, oh yea, here it is.
Glock Disassembly Tools - GlockStore.com