For items as small as the Nintendo Switch Joy-Con controller it must pack a lot of complex sensors and input mechanisms. There is an accelerometer, gyroscope, infrared camera, 20+ buttons, and two control sticks, not to mention the touch screen on the Switch itself
Then, you might need to make sure all inputs are working correctly. It's a bit annoying if playing games becomes emotional because the controller has a problem.