Who coined the phrase 'King of my castle'?

King of my castle is term used when describing a situation where someone is at home and can do whatever they want since they're the king of their home. People in medieval Europe made up this term, however the specific person is not known.