Big capacitor near input power connector
Most motor controllers are switching 10's to 100's of Watts of power. To avoid voltage drops on the line input from wire inductance, it's advisable to have some kind of energy storage on-board to smooth out voltage switching noise.

You can calculate how much filtering is needed