This annoys the living sh*t out of me. It's not so bad when you just have to replace a bulb, but I bought some under cabinet lights (overpriced Kichler Krap)(hereinafter "Krapler") that quit working a couple years after I bought them. It appears to me that the capacitors failed due to the heat. It also appears to me that Krapler could have used capacitors with a much longer life for about .25 more for the entire circuit board.
This is not exactly a great engineering mystery (see e.g.
https://www.edn.com/capacitor-selection-helps-achieve-long-lifetimes-for-led-lights/) which leads me to believe Krapler was aware of this, but didn't care so long as the light survives past the warranty period.
Going forward I'm using LED tape strips and separate transformers. It's slightly more hassle to set up initially, but at least you don't have to replace the entire piece of Krap fixture (or the capacitors if you're so inclined).
I feel so much better after that rant.