It is possible that prayer was a secret female wisdom that was going on during the temple period. In the story of Hannah the high priest observes Hannah’s prayers but doesn’t know what she is doing. He thinks she is drunk. But if Rashi is to be believed Hannah’s co-wife Penina knew enough about prayer to try to mess with Hannah’s head to get her to pray; she deliberately mocks her for not having a son in order to get her angry and ultimately to pray. Hannah’s prayer is not actually to get something, because although she gets a son out of it she promises to give up the son so he can enter into divine service. It’s about establishing a relationship or exchange of energy. In this sense it may be a personal, extemporaneous, improvised version of the sacrifice system. In the sacrifice the animal is killed, offered to God, and then distributed to the sacrificer’s family and eaten. The same thing is given up and received back. The same with prayer, but the sacrifice is of intention, words, and desires.