Do we know why that is the case please ? Did the Prophet pbhuh say why ?

We have narrations that its better for the women to pray in their houses rather than in congregation. You also will see that even in the times that salatul jumah and salatul eid was obligatory that it was not obligatory on women to attend.