Question: how can you get unemployment if you quit your job?
Answer: If you quit your job, you will not qualify for regular EI benefits unless you had "just cause". Just cause means you had to quit because you had no other reasonable choice.