The method for stacking up Rare Candies in FireRed relies on the game's cloning quirk rather than on any legitimate in-game mechanism.
Give a Rare Candy to a Pokémon to hold — do not use it — then put that Pokémon in a box in your PC storage and clone it. The clone arrives with the held item attached, and the original does too, so one candy becomes two. Repeat as often as you have patience for.
Cloning in the Gen III games is done through the link club and a trade, with the box-and-withdraw step timed so the save completes on your own cartridge only. It is fiddly, and a mistimed attempt can cost you the Pokémon.
Worth saying plainly: this is an exploit, not a feature. It works, but if you want the game as designed, Rare Candies are finite and the intended experience involves actually raising your team.