The Pentax PH-RBB62 Lens Hood is designed specifically to match the focal length of the SMCP-DA 18-250mm f/3.5-6.3 ED AL lens. The "petal" shape of this lens hood maximizes the amount of hood coverage for the minimum amount of weight and hood area.
Lens hoods are primarily designed to prevent unwanted stray light from entering the lens by extending and shading the end of the lens. In addition, since the end of the lens is extended, you also get the added benefit of some extra protection from accidental impact.