The MUSE-Faint survey. IV. Dissecting Leo T, a gas-rich relic with recent star formation