No, they’re doing this because they know that if people had to provide an ID to access porn than web porn consumption would fall (especially consumption of the more extreme stuff, which is the most lucrative).
They fear a rise of a porn black market which is non-monetizable.