Why do men still buy women drinks at the bar?

If it's your relatives or homegirl I understand but a random women I just don't understand especially when they have no interest or don't even know you