Meter box. Latch is fine, but it isn't catching when the door is closed. This is one of the older spring latch closed recessed electrical meter boxes. I'm feeling like there's either
Meter box latch or lock in metal - Repairmymeterbox
Mitras Meter Box Latch Kit – Mitras Meter Boxes
Mayitr 4pcs Spring Toggle Latch Catch Hasp Lock For Case Chest Box Locks - Hasps - AliExpress