Why are dogs called K-9s?

It is text-speak for "canines" which is from the Latin word "canis", meaning "dog".