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 term does not derive its meaning from the musical sound of a rimshot; rather, it originates in basketball, where the ball strikes the rim of the basket and can either go in or miss.