I think the distinction to be made is between anaerobic (ex: sprinting) and aerobic (ex: jogging) cardio, the former of which can very much build muscle (look at elite sprinters) and the latter of which leaves you looking like a beanpole (cue long-distance runners). Obviously there's lots of other factors too and it's likely much more complex at the physiological level