You don't want to accept that there is such a thing as civil marriage. In the real world, it is extremely common. As such, the courts quite properly rule on it.

By the way, even religious marriages have ramifications in civil law. The courts quite properly rule on that as well.

If you are going for an annulment in the Catholic Church, the actual first step is getting a civil divorce. Civil divorces are handled by the civil courts.