The braking system and the cruise control are linked together. When your brake lights come on the cruise shuts off. If the switch is bad, alot of times it will let the lights flicker as your driving down the highway so when that happens it kicks your cruise control off. Its a 15 dollar part atleast. So not much lost if thats the problem.
Its located on the top left hand side of the brake pedal. Its attached to it.
My problem when i had this issue was the Wheel speed sensors in the front. They were going bad. Replaced them and no more issues.