While I imagine that the military does have the right to use expanding ammunition against terrorists and the like since none of that lot have signed any treaties nor even considered abiding by them, it’s probably a logistical concern as much as anything. Sorting out which bullets could be used on which targets would be rather annoying, and it’s easier to just generally stick to the treaty provisions even if you are fighting non signatories.