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.