I think one of the biggest factors for dev burnout is processes and lack of ownership/input devs are subjected to.
Most teams look at developers as just ticket takers and rarely involve them in the product or the decision making. Eventually you just tire of implementing the same stuff over and over like a code monkey.