Much of the fighting continued into 1945 as well as Hitler's death in 1945 so why are we taught the war was 1939-1944?
Who has taught you the war was 1939-1944? They did you a huge disservice.
No serious or even competent book, documentary, or really anything should be doing that. We can certainly say that 1944 saw the final terminal decline of Axis prospects in Europe and Asia but that isn't the same as the war being over as you correctly note.
Sure in 1944 the war was over for s lot of places we can say, having been liberated or the fighting moving on. But again it's not quite the same and even then only for very specific instances.
If someone is telling you the war was practically over in 1944, I'd be very wary of their statements but there is truth in that. But to just say the war was over is to destroy all credibility for whatever else they had to say.