It depends where you draw the box. Fusion gain is energy out of the fuel over energy into the fuel and doesn’t consider how you got that energy into the fuel.
No electricity was generated. NIF isn’t set up to generate electricity. And that will have its own losses associated with a typical thermal power plant, requiring even more gain for the overall system to break even.