This is a burner igniter, the small electrical part that sparks the flame on a gas cooktop burner when you turn the knob. Over time these wear out, and a burner that clicks but will not light is often the culprit. This one is an OEM Whirlpool part, numbered W11447374 and also listed as WPW11447374, so it is the same type of part that came with the appliance.
Before you buy, match the part number to the one printed on your old igniter or in your appliance manual. Most people find the old one under the cooktop or behind the knob area. It suits anyone with a Whirlpool gas range who is comfortable doing a simple repair and wants a replacement that fits without guesswork.