When one substitutes margarine for oil when baking cookies why do the cookies turn out differently?

There is a large volume of water in margarine. This will make the cookies or anything drier and most likely crumbly. You can use oil in place of margarine in most things, but not the reverse.