Paul Pierce saved the ball from going out of bounds, but it went straight to the Raptors. It was a supremely stupid turnover.
This is why you never save the ball under your own basket. Also, you should never save the ball from going out of bounds when the other team is about to commit a 24-second violation anyway. Poor decision, Paul Pierce.