Comment by mike_d
They are required by law to provide the data, and freely give it to Ancestry.com and the like.
You could argue they also shouldn't spend any money on computer security, investigating internal sexual harassment cases, or patching holes in their parking lot because that is just taking away money that could be used on veterans.