Its greater wind resistance trumps the 17s flatter trajectory.
This is actually an internet myth perpetuated by those who haven’t run the data through a ballistic calculator. The .17HMR has less wind drift than the .22WMR, due to a combo of often superior BC and faster velocity. Run the numbers and see for yourself.