Because 24=8×3 with 8 and 3 sharing no factor above 1, test divisibility by 8 (last three digits) and 3 (digit sum).
2,160→160=8×20(by 8),2+1+6+0=9(by 3)
So 2,160 passes both and is divisible by 24. Of the others, 2,164 and 2,168 fail the 3 test (digit sums 13 and 17), and 2,172 passes the 3 test but its last three digits 172 are not a multiple of 8.