Algorithmic causal structure emerging through compression