I was under the impression tha they also thought this themselves but got "persuaded" with the prospect of more money if it could handle certain payloads of use for defense?
The case for the Shuttle was so marginal they needed every prospective customer they could get. The military was dragged into it unwillingly, but did give their requirements when forced to commit. They backed out as quickly as possible after the Challenger disaster.