Why does a healthcare provider tell you to keep your fingernails cut short?

Germs! Fingernails are a notorious haven for many types of bacteria that can get trapped underneath them even if someone is careful to wash their hands often. For that reason, doctors advise and often themselves ensure that their fingernails don't grow too long and create opportunity for bacteria to catch a free ride.