It’s not an intentional behavior, many other snakes vibrate their tails under stress. Only rattlers are equipped to make an audible signal.
A bull snake will vibrate his tail and even flatten his head out to mimic a rattler.