unfortunately, not all tax regulations were written properly. taxes are collected for government services. but there should be a fair computation on which social class should be paying more.
Our country is clear about it that taxes on capital gains has to be paid and any profits earned is attracted to pay the tax accordingly. Government require money for the economic growth, development , infrastructure etc and thus they do not want to miss out any such opportunity to levy the taxes on any such capital gain earned.