Dealership Mechaning

I took my 97 Cherokee to the dealer to fix an electronic problem similar to many on this thread. They could not find the problem. Why would I pay a dealer's rate for service when they can't repair what they sell?