Can gas water heater thermostat temperatures drift?
Yes a thermostat can malfunction and it's certainly possible that what you're seeing is related to a bad one.  You might consider replacing it because an erratic thermostat can be dangerous.  

At 15 years old, however, you might consider replacing the entire unit.