Inside it has pretty much everything that you would need for PWM controller. It has oscillator, that can give you 100Hz to little bit more than 500kHz and which is controlled by resistor and capacitor values.
Bandgap 5V voltage reference. Internal logic, error amplifiers, PWM comparator and output transistors, which can source or sink up to 500mA each. And all this is for less that $1!