Cater - meaning to provide what is needed or wanted.
Pander (to) - meaning to do or say what someone wants in order to please them, even though you know it is not right
They both mean to serve in some capacity, and although they're not entirely interchangeable, there is some overlap.