I had this same issue on Friday. I was taking the cassette from an old bike to put on the new wheels for my most recent upgrade.
The pin was loose and I was quite surprised when the sprokets came off one by one. All went back together OK but the pin was left loose as it had nothing to tighten into