Why do dogs chew their toenails?

Why does anybody chew their nails? Maybe he/ she is nervous.