In your element

Where does the phrase 'In oyur element' originate from and how has it got to mean what it does today

Element = the state or sphere natural or suited to a person or thing. At school she was in her element. (Merriam-Webster online) The natural element of a fish, for example, is water.