Many earwig species display maternal care, which is uncommon among insects. Female earwigs may care for their eggs, and even after they have hatched as nymphs will continue to watch over offspring until their second molt. As the nymphs molt, sexual dimorphism such as differences in pincer shapes begins to show.
Seems like she was packing her eggs in a corner. In my native tounge we call them "oorkruiper" wich means "ear crawler" in English. I dont know how true this is, but from a young age South Africans will keep clear of them.