I take it this is a new cassette and an old chain ?
Likely that the chain has stretched and isn't fitting onto the cassette teeth snugly. Have a look
here and scroll down to the section on 'Chain & Sprocket Wear' for an explanation.
You'll probably have to buy a new chain (or a new cassette if the cassette is old and the chain's new).