Not all of them were. There are only hypotheses why some did. Overabundance of food and hollow bones allowing them to grow to great lengths and heights. Another is since they were reptile-LIKE, they may have been able to grow indefinitely during their lifetimes.