If we only comment on how inherently good they are they might get lazy as whenever they get bad grades excuses like "I wasn't trying" works. It doesn't matter if the parents continue being surprised of the bad grades, the answer can also be "I was just lazy".
This is exactly what happened to me and I'm still trying to reprogram myself.