Must've triggered something when they questioned you. Maybe you just made yourself non-Grata over there too by sharing this story.
At least they should have said, wait, let's clone it and here is your laptop back. Unless they suspected you of economic espionage or whatever and didn't you to have it with you. Either way, unless charged with a crime it's theft.