The Chorus speaks this line in the Prologue. It operates on two levels:
"What is past" = the ancient Montague-Capulet feud. The Chorus summarizes this backstory so the audience enters the action already oriented.
The play itself becomes a prologue to the greater tragedy—the lovers' deaths and the families' reconciliation. The Prologue hints at the ending ("star-cross'd lovers take their life"), framing the two hours' traffic as preamble to catastrophe.
Shakespeare uses the Chorus as both historian and prophet: here's where we've been; here's where we're going.