How is this the same? You can't apply for a green card on a holiday/tourist/non-working visa. You have to be already in the country for many years before you can do that.