I can really depend on how the hose can be situated. Oftentimes the hose runs into a cabinet next to it and into the sink drain. Frequently just adjusting that under the sink is enough.
Also the hoses are intentionally too long so you can attach the hose before putting the washer under the cabinet. Making sure to take up the slack is the important part
But sometimes yeah you can’t and just have to replace the hose every once and a while. If you use the washer frequently enough, like at least once a week it should be fine for years