GPLv3 has this clause:
Some countries have adopted laws prohibiting software that enables users to escape from Digital Restrictions Management. DRM is fundamentally incompatible with the purpose of the GPL, which is to protect users' freedom; therefore, the GPL ensures that the software it covers will neither be subject to, nor subject other works to, digital restrictions from which escape is forbidden.
And has a definition corollary:
Complete Corresponding Source Code also includes any encryption or authorization codes necessary to install and/or execute the source code of the work, perhaps modified by you, in the recommended or principal context of use, such that its functioning in all circumstances is identical to that of the work, except as altered by your modifications. It also includes any decryption codes necessary to access or unseal the work's output. Notwithstanding this, a code need not be included in cases where use of the work normally implies the user already has it.
The GPL "stops" apps from using DRM because to use DRM is to violate the license and be liable for copyright infringement.
On OSX specifically, I imagine the Apple had some leaky GPLv3 code somewhere, because they open sourced a lot of Darwin between 2007-2010.
That is, unless they can do cost-benefit. Some markets is just to competitive that you can't waste developer time in order to be afraid of licenses. The game market is very saturated, but there might be places where you can afford to entertain peoples fear.