Because the parking brake has a limiter, designed to kick in if you have the parking brake on, to keep you from trying to drive around with the parking brake on. Yours was out of adjustment, therefore thinking the brake was on when it wasn't and needed to be adjusted. Or you were trying to ride it with the parking brake on.