There are different grounds for being granted a green card. One of those is that your employer wants to hire you permanently, and can't find an American to take the job. Getting a green card doesn't require an employer's sponsorship, that's just the most common application for green cards.