Because by default it finds already installed package from stock repo and leaves it as it is. Statement below enforces upgrade to the recent available version (from the repo added several rows above).

I am not sure and honestly I did not investigate (or do not remember) why chef behaves this way, but it does not seem very unusual.