He didn't pick up anyone's hat. He picked up the Marine's cover. Obviously the author hasn't been in the military.
I still tell my wife they're "covers".
This is actually a pretty cool story, because it illustrates that Trump does not see ordinary people as beneath him, or unworthy of notice/consideration. Trying to imagine Hillary making a similar attempt at kindness to a Lance Corporal...it would simply never happen.