Quick analysis: In 2022 NYY led all MLB in HR (254) and BB (620). They were just above league average in total Ks at 1,391 (13th all MLB) and just below MLB average in overall hits at 1,308 (16th all MLB).
Now where this gets interesting is when you look at the total number of hits
excluding HRs (i.e. H-HR) the Yankees drop down to the 5th lowest in all MLB at 1054.
Astros pitching in the regular season allowed the 2nd fewest HR in all MLB (134, 1st - 132 SFG), 4th most Ks in all MLB (1524), and was 11th in fewest BB allowed in all MLB (458). During this series Astros pitching only allowed 10 BB (worst being G3, 5 BB) and 3 HR (2 of which were Harrison Bader of all people).
It's a lot of numbers to state what is probably obvious but, Houston's pitching was designed to dismantle this offense. Removing NYY's means of getting base runners and scoring them, all that's left is the strikeouts to pour through-
all 50 of them.