Consider the simplified case of intersecting intervals (see below). It can be the case to have three intervals such that A and C both overlap with B, but A and C don't overlap with each other.
To translate this to hypothesis testing, think of the test as of looking if confidence intervals overlapthink of the test as of looking if confidence intervals overlap.