It is necessary for a reaction to occur under constant volume conditions so that the heat involved whether rejected or absorbed can be easily determined since this will be directly proportional to the change in temperature. Hope this answers the question.