Mostly, finials are used as a decorative addition to a roofline, but in some cases they can be used as lightning protection (if specified to be built that way).