You have strength but cant move boulders in Pokemon diamond why not?

One of the basics of POkemon is that even if you have a HM (HM strength for example) you cannot use it until you beaten a certain gym.

So, inother words. you wont be able to use it until you beat a certain gym. Whatever gym is next (One you havent beaten yet) will probably let you use it once you have beaten them.