Frequent question from new brewers.
You're right, they give you the sugar, and you can't mess it up.
Here's the issue: You topped off with water. When you top off with water, the water and the wort are dramatically different densities and do not mix easily (think dumping honey into water- it just falls to the bottom). When you took a sample for the hydrometer, you actually grabbed more top off water than you did wort, and as a result the reading seemed artificially low.
If you added everything you were supposed to (nothing less, nothing more), and have the right volume (if they call for 5 gallons, and you have 5 gallons, not 4.5 or 5.5), then your OG is accurate to the recipe, and you can just ignore what the hydrometer says. It'll take a veritable asston of mixing to get a truly representative sample, and even then you can't trust it.
You're actually better served reading the sample before you top off. Then you take that reading (which will be much higher than the recipe's OG) and mathematically convert it. That's what I did every time with partial boils. You lose the margin for error.