Android uses a Linux base to run. In Linux, there is a thing called "root". The root user has the ability to do whatever they want to the system.
When you "root" an android device, you give yourself the ability to modify whatever you want on the system. This allows you to install roms, use...