Medical labs use QR codes to streamline sample tracking and patient data management. By scanning QR codes on samples, lab technicians can access patient information, test requests, and results. This reduces errors, improves efficiency, and ensures accurate record-keeping.