because back then, when the only land on earth was pangea, a mega continent. There was a large ocean called the panthalassic ocean, and many animal species thrived in it for a long time. The reason that ocean animals are bigger than land animals is because there was barely any life on pangea during that time, almost all animals lived in the panthalassic ocean. So therefore it gave the marine species longer time to adapt and grow. while land animals adaptation started way after.