On the ground is perfect for kicking them in the nuts, leg/torso strikes, sweeping their legs, or various control locks. It's a near ideal place to be to also get your opponent on the ground. You can also get a solid kick or sweep in, or throw them off balance on the way down too, if you're ready for it.
You might find BJJ pretty interesting. [https://renzogracieacademy.com/about/what-is-brazilian-jiu-j...], [https://www.youtube.com/watch?v=u0edxg2fFmw]
Judo teaches how to deal with it quite well too.
The legs are the strongest part of a human, the arms don't compare at all. And fighting from the ground can be VERY effective if you know what you're doing. Or don't just curl up and wait to die.
Ideally you'd be on your feet and able to move faster of course, and I wouldn't recommend against an opponent with a spear or other ranged weapon - but then they wouldn't be trying to grab my foot or leg anyway eh?