How causation is rooted into thermodynamics