I have experienced exactly the same issue multiple times. Take my rank 8 arch gun into the mission, at the end screen summary it says it is max rank, then back in the arsenal it is again rank 8.
This also happened several time with VoidRig itself, but ultimately some affinity did "take" and it leveled up.