I saw "out of one'e wits" in dictionaries so know the meaning and also understand that it's an idiom.
Just out of curiosity, what does "out of" mean here?

"wits" refers to the mind, to mental capacities.

You can be "in your right mind" (sane) or "out of your mind" (insane), to name two more idioms on the same subject.

"out of" is the opposite of "in".

You can be "out of your wits", but we have no expression "in your wits", which would be the opposite — if we had it.



One is normally "frightened out of one's wits" or something like that. You have been deprived of your wits. It's like being cheated "out of" your inheritance.

Jigneshbharatiwhat does "out of" mean here?

Well you may ask. I was unable to find an apposite definition in the The American Heritage Dictionary or the Cambridge Advanced Learner's Dictionary. Suffice it to say that the expression is plain English.

 CalifJim's reply was promoted to an answer.