That's built into the rules for a batting championship. If the hitter would have still won even by going 0 for however many AB's he would need to qualify, they give them to him.
"Nellie Fox, that little son of a gun, was always on base and was a great hit-and-run man. He sprayed hits all over."
Yogi Berra in the New York Sunday News (July 12, 1970)