In dentistry, wearing gloves is necessary during patient examinations or procedures to prevent the risk of cross-contamination, as clinicians routinely come in contact with mucous membranes, blood, saliva, or other potentially infectious materials.