^Why? Is the play so bad that making the audience keep quiet about the ending the only way to ensure others will want to see it?
It is so you do not ruin things for others. If I had tickets to Mousetrap
and someone told me how it ended and spoiled it for me before I saw it, I would be really pissed.