companies can create new stock anytime out of thin air, and that decreases the price. why can't they do the opposite?
some owners of the company decide to buy stocks from the others, thus consolidating ownership. that's what stock buyback is.
note, the argument for taxing buybacks is completely different, and valid. (and it might make sense, it might not, it depends on the circumstances. externalities tax (pollution, tax on induced traffic, etc), LVT (land value tax) and wealth tax would be much better, than taxing transactions.)
So at any point, a company can devalue existing shares that people have already purchased? That also sounds like a problem.
companies on stock exchanges usually do stock splits, etc. (and based on bylaws majority or 2/3rs or more of existing owners need to approve.)
Following your example, it'd be like the author of a book buying the book they wrote from someone else. If the author chooses to pay someone else 1000$ for their book, they can, but they will be wasting money.
A company doing a stock buyback is trading off their own capital (they have to spend it, it's not an infinite money glitch where they buy it from themselves) to get back shares of the company itself at the then-market-price. The market chooses whether that's a good trade. It may not
What's the best-seller list in this case?
Stocks are supposed to be a share of ownership in a company, and the price goes up and down because being an owner of a company goes up and down in desirability, based on how well the company is doing.
Just like with buying your own book, buying your own stock artificially increases the desirability.