Some people feel that it will be against the law of causes if they accept miracles. It will mean that we will accept the effects without the causes and this will not be acceptable to any scholar or thinker.
It is clear that the actual dependence of causes is not an established norm for human knowledge but is regarded as an established norm in philosophy too. No event can take place without a cause. Those who believe in the miracles do not refute this established norm.
This is why there are causes for miracles and it is not just a whim or fancy. There is a metaphysical process or is something extra-ordinary or abnormal (because it is not dependant on the material world and its nature). It may also be that the natural causes may not be manifest or the causes not yet discerned by mankind being impossible because of not depending on the creator of knowledge and nature. So whatever we accept is because we depend on the might of God.
It may be that the miracles of the prophets may be either of the first kind or of the second and they are both equal and similar because of their connection with God.
Qura’n has often depended on the law of causes for things and regarded it as the base or reality when it is related to the nature, creation, collective and individual human life. Since we cannot count the verses in this regard or forbear it we cannot say that miracles are events or effects without causes.