Actually what you must have heard is that wort pH allows for the best compromise of conditions conducive to healthy Alpha and Beta Amylase enzyme activity when a cooled wort sample reads between 5.2 and 5.6 pH. That is truly a far cry from water pH. Since water has little to no buffering capacity (wherein buffering is defined as the ability to resist change in pH) it's initial pH is all but irrelevant when it is faced with the (by comparison) massive buffering that the wort inherits from malts/grains (unless perhaps you have untreated source water that is oddly in the 9's or above with regard to its pH).
In far and away most cases whatever the initial pH of the untreated water is, as soon as the grist is doughed into it, it the developing wort takes on the pH inherent within the grist.