It is intended to question the so called All Powerfullness of God, because either way you loose.
If he cannot make a rock too heavy then he cannot be all powerful for that is something beyond his power.
But then if he can make a rock that heavy, if he were unable to lift it then that two would make him not all powerful.