Hi C.J
There can be numerous reasons for such pawn moves.
I'll restrict reasons to players under 1600
1) It's part of opening theory. (They have seen it before....somewhere.)
AttilaTheHorn - amblessador RHP 2011
[Event "Clan challenge"]
[Site "http://www.redhotpawn.com"]
[Date "2011.08.02"]
[Round "?"]
[White "AttilaTheHorn"]
[Black "amblessador"]
[Result "1-0"]
[WhiteElo "1793"]
[BlackElo "1521"]
[EndDate "2011.08.05"]
[WhiteRating "1793"]
[BlackRating "1521"]
[GameId "8605524"]
1. d4 c6 2. e4 d5 3. e5 Bf5 4. Nf3 {Now somehwere in Black memory there lurks the move h6 to give the f4 Bishop a wee hole to hide in. So...} 4... h6 {This causes problems. Sometimes it's best to know nothing about an opening and play it by ear. 4...e6 is the move, which by magic, would have stopped White playing his next move.} 5. Nh4 Bh7 6. e6 {The perfect way to exploit a weakened g6. Stay tuned you will another in a minute.} 6... Nf6 7. Bd3 Bxd3 8. Qxd3 Na6 {Missing the threat of....} 9. Ng6 {A Perfect example for this thread....simply perfect. Of course Black cannot take it as he gets mated.} 9... Rg8 10. exf7+ Kxf7 11. Ne5+ {A choice for Black. 11...Ke6 12.Qh3+ Kd6 13. Nf7+ losses the Black Queen or....} 11... Ke8 12. Qg6 {....a quick death.}
2) Worried about a piece going to certain square because in previous
games that piece going to that square caused loads of self inflicted problems.
Here:
.
You often see players playing 3...h6 to stop Ng5 hitting f7.
21,460+ times 3...h6 been played on here.
3) A Bluff.
Here some Black players....
play 3...h6 to tempt their opponent to go sac happy or underate them.
A player called Oldmanwithatwix has played 3...h6 here 119 times (W.45 D9 L65).
4) Luft for the endgame.
When I was starting out I often castled and played h3/h6 right away
so I would not have to worry about my back ran later on.
A few pawn storms with Bxh3/h6 mating attacks when I bumped into the
good guys soon cured me of that.
5) They don't know what to do so push a pawn.
If you don't know what to do - do not touch a pawn. Move a piece and pass.
Let your opponent think of something to do - he will be wrong.
6) To open up a retreat for a piece. (or redeploy it)
Fat lady gave a bolt hole for a Bishop. But it may also be to redeploy a piece.
Let's us take the thread up a notch have a look at the good guys.
Look at this position from game 6 Anand - Carlsen. (Black to play)
Magnus actually anticipated White playing h3 here and played Nb8. Why?
The game went:
[FEN "r2qr1k1/2p2pp1/p1np1n1p/1pb1p3/4P2B/1PPP1N2/1P1N1PPP/R2QR1K1 b - - 0 13"]
13... Nb8 14. h3 Nbd7 15. Nh2 {And you see why Nb8 was played.. h3 was played to redeploy the f3 Knight to g4 and put the squeeze on the pinned f6 Knight. Nc6-b8-d7 was played to kill that idea.}
6) A waiting move.
As I said one should not 'pass' with a pawn move however sometimes...
EricD (1174) - psalmist (1235) RHP 2012
1. e4 e5 2. Bc4 Nf6 3. d3 Be7 4. a3 {A waiting move of deep -deep cunning. What is White waiting for...?} 4... O-O {Black to castle.} 5. g4 {If White had played the normal Nf3 this move would not be on.} 5... h6 {Played to stop g5 but it weakens the castled position. 5...d5 hitting the c4 Bishop, threatening Bxg4.} 6. h4 d6 {Too tame. 6...d5 and fight like a rat.} 7. g5 hxg5 8. hxg5 Nh7 {Suicide. But Black was in serious trouble not matter what happened.} 9. Qh5 {Black resigned.}