Answer:
The poet has compared the world with stage because as in stage, acts are performed by many people and they all play a particular role. Just like stage, we all are playing different characters on earth that God has decided for us.
I hope the answer helps you.
Thank You.