We raise to juice the pot. If your range is right it is still a mistake (because you lose EV compared to the optimal play), but it might still be +EV.

Basically, just because a play is +EV, doesn't mean it maximises expectation.