Then why is there the practice of having anullments given in the Church?
An annulment is not a divorce. An anullment claims that the conditions for a sacramental marriage did not exist at the time of the marriage and therefor the marriage is nul. It never happened.
That's why it's called an "annulment" and not a divorce. A valid, Sacramental marriage cannot be divorced.
As Jesus said, (Matthew 19:9) And I say to you, whoever divorces his wife, except for and marries another, commits adultery; and whoever marries her who is divorced commits adultery.
The Greek word porneia used in this passage means unlawful sex; in this context it means "unless the first marriage was unlawful."