That's because Hobbits had personal lives. He didn't hate women or anything like that, they just didn't fit into his story. But the girl Sam likes, for example, is relevant to his characterization. It's a peaceful, non-martial society. I don't think Tolkien had anything against including women in his stories (there are a couple very significant ones).