This phrase simply means that your opponent lost HP and you gained a portion of it. You literally "drained" their HP.
Here's a list of all the moves that result in the message;
"The opposing [Pokemon] had its energy drained!":