The `cp` command copies `man/bats.1` into `$PREFIX/share/man/man1/bats.1`. Without creating the `man1` directory first, your patch would result in `bats.1` being copied to a file named `man1` in `$PREFIX/share/man`.