This is likely the same as a distributive law of monads... https://ncatlab.org/nlab/show/distributive+law on good days i might understand this stuff..
Another less high-brow connection: associativity of matrix multiplication relies on the usual distributivity law..