Names can be confusing. Overall, the English language is full of quirks and unisex names are part of this system. I don’t know how it works in other languages, but the same first name (maybe spelled differently) can apply to both males and females in our country.
When I was growing up, the husband of the family next door was named Carroll. At the time, most of us had only heard of the female “ Carol” version of the name. Also, not too common are men named Gayle like the feminine name Gail.