To comply with laws. To comply with legal or regulatory requirements and to respond to lawful requests, court orders and legal process.
One plus here -- Slack does have a Transparency Report, listed a couple of links below this, that notes how they comply with gov't requests and how often they are asked. Wish more companies did this (list is growing).