Can you show us where to find such a bizarre tax law? My research indicates that capital gains in your country is subject to tax rates from 0 to 20%. It does not indicate that the whole proceeds from the sale of stocks are taxed, instead only capital gains are taxed. Here is the source: https://taxsummaries.pwc.com/kazakhstan/individual/income-determination#:~:text=Capital gains of the resident,Government securities.
Personal income tax in my country is 10% flat. And there's no tax on Kazakhstani stocks. But in some cases those geniuses charge 10% not from profit but from selling amount