According to this paper https://www.lingref.com/cpp/decemb/5/paper1617.pdf the natural linguistic evolution towards compounds in Chinese was well under way by the time of Middle Chinese (~800CE). And most of the cultural exchange with Japan happened after that.