There are actually video poker machines in Nevada with a negative house edge. I'm not entirely sure why - except that your upside is limited, you have to play perfectly, and it gets you in the casino.
It's to attract the players. If the negative house edge increases the return across your park of machines, and it's legal (e.g. this is illegal in France), you do it.
I saw several at the Atlantis in Reno less than a year ago. You do have an advantage, and most of the places they exist they're prominently marked. There are generally only a few, and they're often not played much - perhaps because they also don't pay out rewards points.