I think the T-wing is used to generate added down force on the rear wing. The Ferrari version looks a little more basic then the Mercedes but my idea is that the vortices coming off the T-wing hit the main rear wing to benefit down force without adding much more drag. It’s similar to the way birds fly in the v-pattern.