Firstly, qualification in genders (mens or womens) is based on the players skillset and not if the country wants to send people equally. If you are too lowly rank, even if your country want to send you - you don't qualify to be sent to any qualifications.
Some country also has policies where, if they are not medal hopeful, the country won't send you.
This is against the IOC Olympic spirits, but does IOC or ITTF ban these countries (which is a lot of them)? The answer is no and players has been trying to fight this for decades.
Some countries choose not to take part in various reasons, and some are very extreme where you only see mens and never see womens. Afghan is not the only one in table tennis and you also don't see female swimmers from many countries too.
Each country has there own problems or challenges in terms of equality and ITTF has not really been someone who comes and ban members, in fact, with one Korea, they actually didn't ban the north, but rather tried to unite them. Something that no other sporting federation in the world had manage to do.
As I said, banning of Russia is an IOC initiative starting with doping being driven by the Russian gov.
and then the invasion.
You can't compare this apple vs orange, since it is 2 different things.
and the thing about India - India was inbreach of ITTF constitution when the gov took away the rights of the board. This is the same as USATT last year or was it 2 years ago.
The same applied to some FIFA countries in Africa before (or was it Cricket with ICC).
Gov cannot take over sporting bodies, but Gov can still have a huge influence over the individuals in those bodies and set laws accordingly.
Sport is there to bring unification and peace and is possibly the last part of any sanctioning, since it does hurt people that aren't involved with politics the most.
So, if you ban Afghan from ITTF, are you happy about it and will it work?
Afghan is obviously a very sensitive topic at the moment.