It means you must use Strength - unless it also has finesse
A "melee weapon attack" is an "attack" you make with in "melee" with a "weapon" irrespective if it a "melee weapon" or a "ranged weapon". This uses your Strength modifier (PHB p. 194).
Similarly, a "ranged weapon attack" is an "attack" you make with at "range" with a "weapon", again, irrespective if it a "melee weapon" or a "ranged weapon". This uses your Dexterity modifier (PHB p. 194).
You can throw any weapon to make a "ranged weapon attack" which uses your Dexterity modifier (PHB p. 194)1 , unless it is a weapon with the "thrown" property - this type of weapon uses your Strength, unless it also has the finesse property - then you choose to use either your strength or Dexterity (PHB p. 147).
1 Weapons effectively fall into these categories when making "ranged weapon attacks":
- Ranged weapons that have the thrown property only use Dexterity: Net
- Ranged weapons that have the thrown and finesse properties use either Strength or Dexterity: Dart
- Ranged weapons that have the ammunition property use Dexterity: Crossbows, Bows, Slings & Blowguns. This applies if you use them normally or if you throw the actual weapon as an improvised weapon (1d4 damage, Range 20/60) - note that a sling must be loaded to do any damage this way (one wonders why you would throw the sling instead of just using it normally but you can, so ...).
- Melee weapons that have the thrown property only use Strength: Handaxe, Javelin, Light hammer, Spear & Trident
- Melee weapons that have the thrown and finesse property use either Strength or Dexterity: Dagger
- Melee weapons without the thrown property use Dexterity if you throw them as an improvised weapon (1d4 damage, Range 20/60). This applies even to finesse weapons because when you throw say, a rapier, it is not being used as a rapier but rather as an improvised weapon and they don't have the finesse property.