The line "All the world's a stage" opens Jaques’ monologue in As You Like It (Act 2, Scene 7). He compares life to a play: humans are actors entering/exiting, playing seven roles (the Seven Ages). The phrase means life is performative, transient, and role-bound.
The addition "because you could not" is not part of Shakespeare’s text.