While claiming that verses like this is “sexism” may be far too anachronistic of an explanation, the Church does teach that the truth of God’s Word does not guarantee a fullness of understanding about all subjects on behalf of its writers.
The Catholic Answers Staff wrote the following:
Although inerrancy isn’t limited to religious truths which pertain to salvation but may include non-religious assertions by the biblical authors, this doesn’t mean Scripture is an inspired textbook of science or history. Inerrancy extends to what the biblical writers intend to teach, not necessarily to what they assume or presuppose or what isn’t integral to what they assert.–
CAF Quick Questions: “Is the Bible’s inerrancy limited to matters pertaining to salvation?”
This means that the Church understands that limited comprehension due to culture and scientific study often comes as part of the “narrative” or context that salvation truth comes wrapped in.
For instance, the Bible writers of both the Old and New Testaments didn’t comprehend or even begin to consider that earth existed in the vacuum of space. Instead of the cosmic vacuum they believed the earth was surrounded by water. (Genesis 1:6-8; 2 Peter 3:5) Scientifically speaking the writers were incorrect about what they believed regarding this.
However, this does not mean the Word of God is false or not without error. Just as we do not know all the facts about the universe today does not stop us from speaking about things within the framework of our limited knowledge. Science may discover something tomorrow that will change the way we speak about the earth and sky, but our limited understanding about the physical universe in no way negates the truths about God that are inspired of the Holy Spirit.
So you are going to find that the Bible is a product of its day enwrapped in the mindset of the culture that produced it. You find the truth of God’s word written in the idiom and limited comprehension of the universe held by its writers.
Now “sexism” is a purposeful act entailing prejudice, stereotyping, or discrimination against a particular gender. The writer of Sirach was not being malicious or purposefully bigoted and prejudiced against women in his comments. He was speaking in the context of Jewish married life according to the conventions of his day.
Ben Sira’s perspective was likely that of a Jewish husband and father (who had a daughter no less) and was writing about the anxiety men faced in the society of his day. Like Qoheleth’s comments of Ecclesiastes, Ben Sira is writing of his despair in having to raise a daughter and marry her off to someone respectable lest the daughter and his wife make him regret he has not been doing enough or quick enough. Basically he is talking about the potential for getting it from both sides, his daughter and wife, saying something similar to “watch out for nagging” but employing the idiom of his day.