I don't think Apple copied the flat UI from Windows Phone. It had already become a trend by that point, and OS X had started to move to lighter gradients and flatter buttons in 10.7, released in 2011. I'm sure the web had already started getting flat by then, too.