Compression tester is used to diagnose the health of an engine's cylinders by measuring the compression pressure within them. This helps identify issues like worn piston rings, valve problems, or head gasket failures that can lead to reduced engine performance or misfires. The test essentially measures how well the cylinders hold pressure during the compression stroke.