Them selling games makes direct profit. Them improving a compatibility layer for another operating system creates more potential customers, sure. But it also lets people play most of their games from elsewhere too.
Proton isn't a direct cash generator, it's a fortunate bonus of them having so much money and nobody else to answer to.