And it's not really that expensive, and the idea is that it ultimately saves money in terms of the crime it prevents and fewer police and detectives needed.
I'm not defending it, but in terms of economic sense it's quite well justified. Opposition to it is moral/ideological around privacy/freedom, not economic.