Capacitors are normally used (in this case) to clean up voltage. They insure that voltage to the motor (among other things) remains relatively constant and stable. I believe they also reduce the amount of noise the motor throws back into the system.
I didn't do very well in Microelectronics in school...one of the reasons I went digital instead of analog

So I may be completely off-base!