Unlike an exercise bike, an ergometer allows you to set a precise and calibrated wattage.
On the exercise bike, on the other hand, the resistance setting is only step-controlled.
This means that an ergometer can be preset to precise values, some of which are specified by the cardiologist/medical practitioner.