Of course, when you are dumb as a brick, you will not finish PhD. However, finishing PhD will not make you "more intelligent". It will make you more knowledgeable in whatever you finished PhD in and it will make you prepared for doing science.
And if society needs 5 new highly knowledgeable scientists a year, then producing 100 new PhD holders a year is over-producing them.