Why Did Prez Vote for Oil Tax Breaks in 2005?

The president's current solution for high gas prices is to propose taking away oil company tax deductions so their cost of doing business will increase. So why, during his 20 minute career in the U.S. Senate, did the president vote for oil company tax breaks if he feels they're so evil? Jay Carney has no answer.

I haven’t examined the vote, or what the prices were at the time, or the whole bill it was attached to.