Does anyone know how is green card lottery works?

My friend won a green card lottery of USA and recently she moved with her husband to LA!!

But she has difficulty to find job and travel outside.

I wanted to apply this year but she said is not worth it and doesn’t explain me properly.

Does anyone know how does it work?? Will I have work permit??? Can I travel around and use NHS??? Or go to uni !???