In the early 1700s diseases such as the plague would travel the globe via animals such as rats, birds, and yes, dogs. There was likely a widespread illness which was spread easily by dogs and the saying was created. ( source ) Today it's simply a figure of speech that means someone is very sick.