The rules of the game of baseball lend themselves to home team advantage where the order of team at-bats and substitution rules heavily favor the home team from a strategic standpoint if players are effectively deployed.
Park dimensions + team makeup is a combination that can contribute heavily to home team advantage. The short porches in Yankee Stadium (especially in right) have traditionally granted an advantage to the Yankees' often left handed sluggers. The more the field dimensions vary from the norm, the more the home team has an advantage to tailor their team makeup to exploit them. Parks with high walls, short porches, heavy prevailing winds, deep outfield fences, or absurd dimensions ( Think Willie Mays fielding center at the Polo Grounds) all present opportunities for exploitation.
While the Astros had more wins on the road than at home during the regular season from 2017-2019, their 2017 postseason home/away batting splits were wildly inconsistent. Boston had the best home record in MLB by six games during the 2018 season in which they were found to be relaying signals to batters. I'd suggest that home field presents a greater opportunity for outright cheating as well.