Your Pokémon already has max EVs.
In all core series games since Generation III, vitamins that affect stats increase a Pokémon's EVs for a given stat by 10 EV points, but can't increase the total EVs beyond a maximum of 510.
Since your Pokémon already has 510 EV points, it can't get any more EVs, unless if you decrease the EVs using an EV-reducing Berry, and then increase the EVs with the stat you choose.
Source (Vitamins)