They don’t just guard presidents.
Not only the president but their family, former presidents, and the families of former presidents are under protection too. The Secret Service also guards the president’s guests and anyone the president wants to be protected.