The ideaTheory
Ricardo never said why
Ricardo proved that the United Kingdom should export cloth because its cloth productivity was relatively better. He never said why its cloth productivity was relatively better.
It is like being told a runner won because he ran faster. True, and useless.
Heckscher and Ohlin answer the question. Countries differ in what they have a lot of, and goods differ in what they need a lot of. Match those two facts and the pattern of trade falls out.