Why was the cavalier King Charles spaniel named after King Charles II?

Surely it has something to do with the dogs ears looking like king charles hair, ??

put a hat with a feather coming out of it and a moustache on a spaniel and voila!