Why Do We Pray?

Why does Allah ask us to pray, to fast, to avoid backbiting, to avoid alcohol, to wear hijab? What does Allah gain by these things which He has imposed on us? Some of you might be scandalized by such questions…