Why is the wife of an heir to the throne Queen but the husband of an heir not King?

The wife of the heir to the throne is not a queen. She doesn't become queen until he is crowned King. She can be called queen because she is not a successor to the throne. However if the husband of the Queen as monarch were called King then he would outrank the reigning monarch so he is given the title of Prince Consort.