At TN305 K the layered insulator BaCoS2 transitions to a columnar antiferromagnet that signals non-negligible magnetic frustration despite the relatively high TN , all the more surprising given its quasi two-dimensional structure. Here, we show, by combining ab initio and model calculations, that the magnetic transition is an order-from-disorder phenomenon, which not only drives the columnar C4 → C2 symmetry breaking, but also, and more importantly, the inter-layer coherence responsible for the finite Néel transition temperature. This uncommon ordering mechanism, actively contributed by orbital degrees of freedom, hints at an abundance of low energy excitations below and, especially, above TN , not in disagreement with experimental evidences, and might as well emerge in other layered correlated compounds showing frustrated magnetism at low temperature.