When to use the gestalt principle of common region?

The image below, which can be seen on this medium article uses lines to separate various graphics, but could also use different backgrounds, which is something pretty common when designing dashboards. My question is, wouldn't the principle of proximity be enough to group the related images and text and separate them from the other elements? When do we use this principle?

enter image description here