If one presumes the pH of Coke and Pepsi to be about 2.4, and the pH of wort after adjustment within the mash to be 5.4, this represents 1,000 times more H+ (acid) ion within Coke and Pepsi.
Beer somewhat closes the gap by finishing at about 4.3 pH, give or take, but that's not due to...