It is a terrible thing to play these without good reason. (good reasons include it being part of the system/defense, immediate threats against which you are applying these "prophylactic moves"😉
Never play these because you don't see 'good' moves. You need to come up with a plan. Each move must count and when in doubt you should play to control the center and improve the scope of your pieces.
the a3, h3 ideas just for the "hell of it" are real "coffee house" moves as some books say. They are signs of weaker players.