Dota pays you for the killing blow and nothing else. Chip a creep down to a sliver of health and let someone else finish it, and you have earned exactly nothing. This one rule shapes the entire laning stage.
The last hit
Every creep that dies to your attack pays gold. Every creep that dies to anything else — your own tower, your allies, the enemy — does not. Beginners spend the lane attacking constantly; experienced players spend it waiting, watching health bars, and striking once.
The skill is mechanical at first and positional later. You learn the damage of your own attack, then the animation delay before it lands, then how both change when the enemy is standing where they can punish you for stepping forward.
The deny
You can also attack your own creeps once they drop below a threshold. Killing them is called denying, and it takes the gold away from the enemy entirely while cutting the experience they receive.
Denying is what separates Dota’s laning stage from most of its imitators. It means a lane is not a race to farm faster; it is a contest over whether the opponent gets to farm at all. A player who denies well can starve an opponent who is mechanically just as good.
Why the lane moves
Every creep that dies pushes the lane slightly towards whoever did not kill it. Kill everything quickly and the lane marches towards the enemy tower, which is usually the opposite of what a carry wants — a lane sitting near your own tower is a lane you can farm safely.
This is the beginner’s trap: farming efficiently and in doing so shoving the lane into the enemy’s half of the map, where the support can be killed and the carry can be ganked. Good players are often deliberately slower.
What it is worth
A handful of extra last hits per minute, compounded over ten minutes, is an item. Items at the wrong time lose fights, and fights lost early decide where the map’s vision sits for the next ten minutes. Almost everything downstream in a Dota game traces back to who was better at this quiet, repetitive task.