Because if you did, your question on this forum should be:
Can anyone tell me why the hell I didn't consider the blood-suckingly high percentage before I signed this sodding document ?
Depending on the legal mettle of your present employer they might capitulate or they'll sue your @$$ if you renege on the deal. If it were me, I'd have a covert snoop around my company peers and ascertain if there's any sorry stories of previous malcontents who fell victim of this employment contract.
Perhaps your last sentence of "[i]Do i have to give them that much of amount if...[/i]" tends to illustrate you are already in no doubt whatsoever that this contract [b]IS[/b] legally binding. Perhaps you were so happy to be joining Company A, that the 30% was of little consequence, since you never thought it would come into the equation ?
All is not yet lost however.
I was head-hunted a little over 20 years ago and faced a similar problem. There was no percentage involved though, just the Official Secrets Act which, believe me, is far more frightening than any percentage worries you may be having. The solution was for the head-hunter to personally approach the Govt Ministry that employed me and they seemed to come to a mutual agreement. That could be a possible avenue for you.
Unfortunately I can't give you any more detail than that because I don't know where you live, therefore I'd have no address for where to send the assassin! ;)