This likely refers to the diameter of the entry holes in the junction box. A 25mm junction box would have entry holes that are 25mm in diameter.
These holes are used to bring electrical cables or conduit into the junction box.
Its 25mm entry holes and flat design make it suitable for situations where a shallower junction box is required, such as installations in tight spaces or locations with limited depth available for the box