The reason is: you are trying to use mode, which has already pretrained on a particular classification task. You have to remove the last part ( classification head) of the model.
This is actually a kind of design fault too. In practice
( BERT base uncased + Classification ) = new Model .
is your model. Now, if you want to reuse them on a different tasks, either use BERT base uncased or extract that part from new Model.