From what I read that's a major consideration for US universities why they want to attract foreign students. For German universities that would only be of marginal concern, even if/when they take some money from foreign students it's just pocket change and not nearly enough to finance the institution to a substantial extend. Sure they still have an incentive, but it's much less and not monetary.
I think, that's what I get from what I've been reading in comments over the years.