Why was rohypnol created?

To treat insomniacs.