IQ tests were developed to measure ones ability to do specific thought functions. They were used to recruit code breakers in WW1. Unfortunately because the system has the word intelligence in it people came to believe it was more than it is.
IQ is fine for what it's intended for, like hammers are good for driving nails, less sucessful at applying paint.