This question comes up every single time anything related to wood construction is talked about. The keyword in mass timber is mass. It's quite hard to set a big mass of wood on fire. It burns slowly and relatively predictably -- meaning you have more time to evacuate. And because of its mass, an outer layer can char, burn out and leave the building standing.
Also sprinklers.