Difference with tools-ip scan and ping latency

Hi!
When I run tools/ip-scan I get very high latency(40ms+) on some devices. But if use smaller address ranges the latency get lower.

Why is the difference so big?