Why is an outlet box outside of the wall?
From what I can see in the fuzzy pic, someone wanted a double-gang outlet where there was a single-gang box. They apparently didn't want to cut the wall at all.

There's probably no concern as far as safety, but pop an outlet tester into it to be sure.