I agree with both AuntKate and Kimc, which seems contradictory.
It was the last half of season 7.
Voyager has been lost for nearly 8 years, with no real prospect of getting home in the next 8 years. Janeway's crew has just finished their first "real" Starfleet mission in those 8 years, a simply little thing, really. Search for signs of an ancient spacecraft. No danger, right? And what happens? A man, a valued member of her crew, someone who has a wife and children waiting on Earth for his next video stream via the Pathfinder array this month, a man who was just following her orders, dies.
Needlessly. Meaningless.
For the first time we "see" what Janeway does after a crewmembers death. We see her sitting in his room, among all the material things that speak of his life, and we wonder what is going through her head. Why did he die that day, after surviving so many threats more powerful than their little Intrepid class ship over the last 7 years. How many more of her dwindling crew will fall before she can get them home, and for as little meaning?
Enter into this Janeway funk, we see one of the few officers she will confide her doubts to... the one who braved her wrath during the void of "Night", her crazed logic during the chase of the "Equinox", her cooking during "Voyager Conspiracy". And to him she'll expose her inner sense of fatigue, something she'll mask in front of nearly everyone else on Voyager who questions her.
He died.
Not for glory, not to save the crew, not for wealth or recognition or even for "science". He died for Starfleet Academy's "Interest", and because her forebears were too thoughtless to consider the consequences of their actions on other unsuspecting worlds.
I don't see it as sloppy writing. I see it as a foreshadowing of the Admiral Janeway to come. The elderly woman who will work for years to find a way to change Voyager's past and save 22 lives, 2 hearts, and 1 mind in "Endgame".
Realizing all the while, that even THAT won't satisfy her, won't absolve her of all the other deaths.
Like Joe Carey's death.
As always, YMMV.