Answer
Lightning rods are installed at a higher elevation than the buildings they are protecting in order to be closer to the clouds that are the source of lightning strikes.
Work Step by Step
Lightning bolts will hit the rod first, and the charge will be conducted safely to the ground.