Imagine you have a toy that you really like, but sometimes you might want to trade it for something else. But maybe you don't want to give it to someone else, you just want to keep it for yourself. This is kind of like what companies do when they repurchase their own shares.
A share is kind of like a toy. It's something that people can buy from a company to become a part-owner of that company. But sometimes, a company might have too many shares out there and they think their shares aren't worth as much as they should be. So, they might decide to buy back some of those shares from people who already own them.
When a company buys back their own shares, they pay the people who have those shares the current market price (how much the shares are worth that day). This means that people who own those shares might get some money back if they sell them to the company. But if the company buys a lot of shares back, then there are less shares out there, so the price for each remaining share might go up because they are harder to get.
This is good for the company because it means the remaining shares might be more valuable and it could make the company look better to investors. But it can be bad for people who want to buy those shares in the future because they might have to pay more for them.
So, just like with your toy, a company can decide to buy back some of their own shares to make themselves look better and to make the remaining shares more valuable. But, just like with your toy, sometimes it's better to keep it for yourself and not trade it with someone else.