he intentionally misinformed the crew because he believed the crew has become a threat to the mission which was vital. He got conflicted.
however, in the sequel, they state that HAL was directed to lie by mission control. The sequel is not a direct sequel according to Clarke, so take it as you wish.