Since Hamas has been designated as a terrorist organization by the federal government, As a terrorist organization, Americans are not allowed to provide material support to the group.
The federal government would have good reasons to protect national security to question people that threaten our national security.
It might be weird or not depending on how you frame it. Asking “what do you think about the current president of the country you’re entering” might be a pretty benign question for a border officer to ask. Or it might not, depending on the exact wording and context. Hard to judge without seeing the actual thing.
The current context, in case you forgot, was that the trump admin is making direct threats against private citizens who engage in constitutionally protected activities, like speaking and like gathering in a protest. The context is that "getting detained" is half a step away from "getting disappeared".
I get that you don't think this is a problem. Just remember this when you are looking for someone that you can't find anymore.
It's true. The first amendment gives him the freedom to express his beliefs, but it should be obvious that who endorses terrorism and genocide is going to be suspicious/monitored in case they are further radicalised