“Yes, and where did someone come from?”
By the inferred logic of your question — if your spouse or offspring breaks a law, you are responsible.
I’ll answer for you since you don’t seem to “get it”. She was formed from one of Adam’s ribs. Ok? God formed her by taking one of Adam’s ribs. She was not formed independently from Adam. Therefore she was part of Adam. He was therefore integral to her even being here. THAT’S why she was subject to him. She was part of him. He was responsible for her. And being responsible for her because she was ACTUALLY part of him made him the one who answered to God.