how does the loss function work in word2vec?

I was watching CS224n and I Came across this equation for word2vec loss function. As in the blue box, "for each document\training example t we are calculating the probability of context words given the current word". I wanted to know why we are multiplying the probabilities as in the red boxes. I might be missing out on some math, it would be great if someone can help me. Thanks.