What should the ultimate goal of a cardiac rehab program be?

Education & exercise. Cardiac rehab is a structured program run by medical professionals that includes supervised exercises tailored to your medical and physical condition, education on how to control your risk factors for heart disease. Multiple scientific studies have shown it improve patient outcomes like quality of life, survival, reduced re-hospitalization, better control of cardiac risk factors.
Healthy heart. The point of cardiac rehab is to strengthen your heart to make it healthy and reduce your need for medication. The endpoint is something that you and your doctor need to decide and will depend on where you start out.