With that many outs its 50/50 to hit the hand when seeing both the turn and the river, so it's an 'even money' call. Its definitely a gamble but a good one I think, because if you hit you'll win a big pot.
Your opponent likely has an overpair or a set and is afraid of the draws.