Generally, a slight nose-up attitude gives the best performance. This allows the fuselage to create some lift without producing too much drag, thus filling the drop in the spanwise lift distribution created by the interruption of the wing by the fuselage. However, in passenger aircraft this will make the job of attendants much harder because their trolleys need to be pushed uphill and will roll away when not secured.
Therefore, a neutral attitude is preferred in cruise. When the aircraft slows down, it needs to increase its angle of attack, so the nose-up attitude results. When flaps are deflected, the zero-lift angle of attack is reduced, so a smaller angle of attack will again be possible. The precise attitude is a side effect of speed, air density and flap settings, and is not deliberately controlled when flying a holding pattern. By this time the flight attendants have returned to their jump seats, anyway.
Note that some aircraft will fly a nose-down attitude by design. The Boeing B-52 has powerful flaps which are designed to allow it to lift off without rotating, and when the aircraft accelerates during the initial climb after take-off or flies its approach, the fuselage will have a nose-down attitude. See the picture below of the B-2, the B-1B and the B-52 all flying at the same speed, each with its own fuselage attitude.

B-2, B-1B and B-52 flying at the same speed (picture source).