Why is Peter Pan usually portrayed by a female on stage performances (not movies)?

Peter Pan was introduced to the world in 1904. At the time, stage productions were prominent and the Broadway play director wanted to cast a female. That tradition has continued and a woman is cast often.