What's with sites asking my mobile phone number?

I tried to register an account on Youtube. It requires a mobile phone number

I tried to register an account on Yahoo. It requires a mobile phone number.

What's the deal, why are sites that have no business knowing my phone number asking for one. I wouldn't mind if it was optional, but it's not.