The breed itself originated in China, and for a long time, it was only kept within the Imperial Palace, where it was known as the "Lion Dog."
When the breed was first introduced to the West in the 19th century, it was called the "Pekin" or "Pekin Spaniel", referencing its place of origin.
Eventually, the spelling evolved to "Pekinese" to sound more like the pronunciation of the Chinese city.