“Outsmarting oneself” is a term used when; for example, someone accomplishes something that even impresses themselves. Perhaps I pass a test that I otherwise expected to fail or not do to well on but score 100%, I may say I outsmarted myself. Hope this helps.