If there is strong challenge to the incumbentpresident in a primary it can harm the president in the presidential election as it shows a lack of support from their own party
Example of a president that faced strong challenge in the primaries
George H.W. Bush was challenged by Buchanan and won only 72 % of the primary vote. he then lost the following 1992 election