I am even more confused about the INSULT “Trooper”

Besides not being able to find the reference, I looked up the term and it is certainly not an insult but one of endearment

like a trooper, with great energy, enthusiasm, or display