Here's why:
* Max Repels work by preventing any wild Pokémon encounters. This includes both regular and shiny Pokémon.
* Shiny Pokémon are a random encounter. They have a specific chance of appearing regardless of any item used.
Therefore, using a Max Repel will stop you from encountering any Pokémon at all, including shiny ones.