Quite a few websites I use offer this (usually in addition to a password.)
I won't use it, because it means I will be locked out if my phone or SIM breaks.
This could easily be fixed by having a backup phone number to use if the first one fails, but for some reason they never do that.