The name derives not from the sound of a rimshot in music, but rather from basketball, where the ball hits the rim of the basket, and may or may not go in.
The origin of the term does not stem from the musical sound of a rimshot but rather from basketball, where the ball impacts the rim and may go in or miss.