Is there any wall existing between men and women?

This is a true incident which happened in my life few months ago. I met one of my female classmet in the train and she was going to her relative's house which is 10 km far from my house. We get down at the station and i offered her a lift in my motorcycle and she accepted it. Mean while we took two tea during our way to that house. This incident will reach my wife's ears and she began to trail me. I explained everthing to her and try to convince her but she was not satisfied with my arguments. Lastly she asked me a question What will be your reaction the same thing if i do. I was shocked to hear that and i understood the mistake I did. I said sorry to her.