The Origins of the Secret Service

Where did the Secret Service come from?