welcome to the Wefugees community!
Here is a quote from the website of Swedish Migration Agency:
"The fingerprints are used to check whether you have applied for asylum in any other Schengen country and if you have a residence permit or prohibition in any Schengen country. If the fingerprint check shows that you have been registered in another country on your way to Sweden, or that you have already applied for asylum in another country, the Migration Agency will determine which country should examine your application for asylum."
You can find further information following this link:
So if you apply for asylum in Sweden it might happen that they will refer you back to Hungary even though you did not apply for asylum there.
Let's see if @Marcel and @Steven can add something.
I hope this answer was helpful to you. Feel free to ask further questions if anything remained unclear.