Its a combination of many things, intonation and delivery, politeness (formality, honorifics etc.) level, word choice, particle choice.
Its known as onnarashii (女らしい) speech.
Its a historical thing which is gradually falling out of use. These days you tend to only mostly find it in situations where the politeness levels are needed/expected (e.g. hospitality industry).
Imagine a male, non-native English speaker learning from a group of stay-at-home moms. Deep South, Midwest, take your pick. He's gonna pick up some stuff. Men in the US aren't expected to say "Aw honey," or "Bless yer heart!"
the same goes for many langauges, but you need to learn the same japanese but different form and way its spoken. I had this issue too, luckily a few japanese women helped me OL/dates so I could steer but this is a big issue