Bicycle pegs are primarily used for tricks when attached to BMX bikes. The metal pegs are great, if properly attached, to allow the rider the expanded ability to do more tricks.
Most pegs come standard on street and stunt bikes, but if you wish to customize your bike, there are plenty of options to do so with the pegs.