Because running is a direct leg stress, and riding has a chain component, the exercise effect of running at the same distance is better.
If you run and ride a bike for a long time, the most important thing is to strengthen your cardiopulmonary function!