There used to be some sort of statute preventing women from acting in plays, and all parts were played by men. I know that this was certainly the case in Elizabethan and Restoration period England, but I don't know if the law still existed in the 1800's.