Every king with a hat has some elementary knowledge of how to use thread and a needle. If his fancy hat needs repairs and there are no servants nearby he needs to know how to do it himself.