The categorical imparative is absolutely supposed to be the antithesis of consequentialism. It is an implementation of deontology. Deontology comes about as an attempt to escape consequentialism
The fact that it breaks down back into consequentialism is as a result of deontology being not actually different from consequentialism