Intelligence does not equal knowledge. When Grimlock gains intelligence, he becomes very learned and knowledgeable. If he only gained intelligence, where does all his knowledge come from all of a sudden? Likewise, when he sacrifices his intelligence to Computron, Computron suddenly becomes not only very intelligent, but also very knowledgeable, and Grimlock reverts back to his former, "dumb" self.