Each beat splits into three
In simple time each beat divides into two. In compound time each beat is a dotted note that divides into three. In 6/8, 9/8 and 12/8 that beat is a dotted crotchet: three quavers. So holds six quavers but is counted in two beats, one for each group of three.
Quick check
In , how many quavers make one beat?