The story
From court (“demonstration of such respect as is traditionally given at court; attention directed to a person in power; behaviour designed to gain favour; politeness of manner; civility towards someone”) + -ship (suffix forming nouns indicating a property or state of being).
Etymology from Wiktionary, CC BY-SA 4.0.