Homosexuals have been discriminated against during large parts of our history. In Sweden inte was not legal with same sex relationships until 1944, but even then it was considerd an mental ilness. This law was not removed until 1979. Many things have changed since then, but many are stil treated badly because of their sexual orientation.
Today Sweden is in aspects a world leader in HBTQ-rights, but the law is not always enough. In some groups of society there is still widespread homophobia leading to the discrimination of those who identify as anything else than straight.