Question: what happens when you beat team rocket leaders?
Answer: Upon defeating a Leader, your Rocket Radar will be consumed, so you'll need to collect 6 more Mysterious Components or purchase a new Rocket Radar from the Shop to encounter more Leaders. Defeating a Leader also allows you to encounter one of their rare Shadow Pokémon, which also has a chance to be a Shiny Pokémon.