This is because the pH of the solution changes the chemical and stereochemical properties of the solution.
All the proteins or polypeptides are formed of polymers of amino acids. These amino acids comprise of an alpha carbon, where a hydrogen, a carboxyl group, an amino group and a variable group R is attached. All these four groups have their specific stereochemistry which gives the polypeptide a particular shape in their coiled form.
Here in case of polyglutamate, the polymer is formed of chains of glutamic acid. This glutamic acid has carboxyl group in the R group which remains free even in the polymerized state. In acidic pH, the carboxyl group has its normal structure - COOH, but as the pH increase to 7,the hydrogen ion dissociates making it - COO⁻. So the stereochemistry changes and the specific rotation also changes.
Similarly in poly lysine, there's amino group in the R group which remains stable in alkaline pH of 10,but in case of neutral or acidic pH, the structure becomes - NH3⁺. So, the specific rotation changes.