The occurrence of extreme events in a spatially extended microcavity laser has been recently reported [Selmi et al., Phys. Rev. Lett. 116, 013901 (2016)] to be correlated to emergence of spatiotemporal chaos. In this dissipative system, the role of spatial coupling through diffraction is essential to observe the onset of spatiotemporal complexity. We investigate further the formation mechanism of extreme events by comparing the statistical and dynamical analyses. Experimental measurements together with numerical simulations allow us to assign the quasiperiodicity mechanism as the route to spatiotemporal chaos in this system. Moreover, by investigating the fine structure of the maximum Lyapunov exponent, of the Lyapunov spectrum, and of the Kaplan-Yorke dimension of the chaotic attractor, we are able to deduce that intermittency plays a key role in the proportion of extreme events measured. We assign the observed mechanism of generation of extreme events to quasiperiodic extended spatiotemporal intermittency.