You need to think of the "yards" in "the whole nine yards" the same way you think of the "bucket" in "kick the bucket."
There are no real yards. There is no real bucket.
They are idioms and they mean what they mean. Breaking them down into their parts will not help you understand them any more. As far as what else I have to say on this, I've already given you the whole enchilada.