Just went an reread on it an yes your right, so they are not the same an shouldn't be connected. Reading the comments it says "-1" will set to the default compression of the server. Makes sense to do it that way. Plus I had it backwards, 9 was the most compressed an would have been reversed from the jpeg quality.
http://www.php.net/manual/en/function.imagepng.php