Humans don't produce a lot of usable energy that way. Let's say you burn 300 Cal riding that stationary bike for 30 minutes. That's barely 0.3 kWh. Most of that energy you burned is just heat. The rest is minuscule. After subtracting inefficiencies of the alternator, and transformers, and all the rest of the hardware required to convert human power into electrical power... you're not left with much. It would take far, far longer than the lifespan of the exercise equipment to pay for the operation.
And, most modern cardio equipment consumes more energy as electricity than the user of the equipment is producing.