UI camera is supposed to clear depth, otherwise you will get your 3D scene's depth info interacting with your UI, which is not what you want.
You are supposed to have another camera in your scene that will draw before the UI that will clear the screen. If you only have the one camera (the UI camera) then its clear flags should be Color or Skybox.