Despite Ulrik being a resident of Denmark, the Swedish police kept him detained for 48 hours, 8 of them spent at an asylum center. The police did not charge him with a crime but insisted that because he refused to answer questions, and since they presumed that he was going to commit crimes in Sweden, they would not grant him entry.
It seems that the Swedish police are treating him as an immigrant, as a way to have legal backing for detaining him and sending him back to Denmark despite him having committed no crime. This is pure and clear political repression.