Why do the number of windings around an electromagnet affect the strength of and electromagnet?

This is because an electromagnet gets its magnetic force from the electrons passing through the wire, the more coils there are the more electrons passing through so the more magnetic power. Obviously this only works to an extent since you would need more voltage and so on.