I don't like this feature - it means that the AI often won't have rockets left for when it needs them, and the AIs more effective with a rifle anyway. I was also under the impression that the AT4 in real life was not very effective against personnel.
That said, if you don't like the feature, there are mods which disable it.