Bikes in the gym mainly practice calf and thigh muscles and hip muscles. Ordinary bikes need more parts, including upper limbs and waist.
In terms of consumption, for the same amount of exercise, of course, ordinary cars are bigger, with more moving parts and more balance.