Given their ranks, they probably had their ID photos taken in Basic Training. If that’s not the case, it is typical for soldiers, usually as part of an entire unit, to undergo records reviews stateside (i.e. medical records, shot record, wills, powers of attorney, ID cards, etc) to bring everything up to date prior to deployment.