Why do my wrists hurt when I type on the keyboard?

Ergonomics. You may be developing carpal tunnel syndrome. Make sure you keep your wrists straight while typing and have a soft gel cushion to rest them lightly upon. If the problem persists despite these measures see your physician for treatment.