Displaying US Flag on US vessels

Other than respect for our US flag, does anyone know of any regulation on the use or necessity to fly the US flag while underway?. I’ve been told there is no reg stating such, but find it odd. Every US vessel I’ve sailed on has always flown it.