Synthetic CDO: Why does the senior trench receive anything at all?

Hi all

I am wondering why the senior tranche in the CDO would receive anything at all? They have not invested any money, so why get the return? Isn’t it the junior tranche which invests and thus receives coupons and insurance premiums?

What does the senior tranch do when it does not fund?

Am I missing something?