The reason Philip was deprived of the title of king is due to the parliamentary succession law, which takes into account gender only when titles are granted. Kings wives usually take the title of husband, and the woman becomes queen because she is the king's wife. And Kate Middleton could be queen if her husband William became king.