“The expression probably reflects a superstition, perhaps a theatrical superstition in which directly wishing a person “good luck” would be considered bad luck, therefore an alternative way of wishing luck was developed.”
Sounds weird, but reasonable I guess…