I think most bikes either use a foam or some type of retainer guide for the hose in the frame.
On my wife's Canyon Aeroroad, they have the hoses running through the downtube & are zip tied & I don't know if they have foam cover as above
Some people have reported rattling in the Canyon frame, but those might be older models