What role does magic play in contemporary societies? Why has magic has continued to survive in spite of dramatic gains in scientific knowledge?

What role does magic play in contemporary societies? Why has magic has continued to survive in spite of dramatic gains in scientific knowledge?