Had that numb brain electrician or most likely “electrician helper” had left the ground off, that box would have been deadly. Luckily. the ground was there and the scorch marks were also noticed before touching it.
The screw for the inside cover was screwed into that large branch circuit wire.
The screw head was not damaged and it looked just like the original factory screw.