Because they have to walk on their web. If they only had four legs they would have to lift two when walking which leaves only two to hold onto the fine web which is likely to tear. With 8 legs they can hold onto the web with at least four legs and so spread the weight a lot more evenly.