A team has had shut out despite 12 hits 48 times since 1897, most recently Milwaukee Brewers on 2 June 1998. That is about one every 9,229 team-games.
Box score for the most recent one ↗
The whole distribution — Shut Out Despite Hits · All 18 shapes