What are those pins for...?

The two 5V pins and two GND pins are connected. They could reduce those pin blocks to 2x9 pins, but pin headers come in 2x20 configuration as standard and they'd just be throwing the extra pins away.