Anything you say from your heart to God is a prayer. But "why" is rarely a useful question. When Job keeps asking God why he has had such loss and suffering, God says, "You wouldn't understand." I always want to know why, and I almost never have a good answer.