The questions asked of travelers coming to the United States are not new. These questions began appearing to help curtail plane hijackings and smugglings that were happening in the 60s, 70s, 80s, etc. I've been asked questions about who packed my bags, did I visit a farm, how long was I gone, where did I stay, and where will I stay in the U.S., etc. for decades whenever going back and forth to Canada. I remember the first time I heard them when returning from Europe (London) was in 1990. (The questions in London included asking if I was carrying any batteries. I said No but when I got on the plane I realized I was wearing a battery in my watch, my camera had a battery, and my toothbrush had a battery. I have to assume they knew most people don't think about what uses a battery.) For some sample questions asked of persons entering the U.S. see https://www.nolo.com/legal-encyclopedia/entering-us-what-expect-airport-29797.html. This is a good explanation page.
It is a good idea to look through the U.S. Customs and Border Protection website and specifically at "Know Before You Go" information. See https://www.cbp.gov/travel/us-citizens/know-before-you-go so you are prepared before leaving with the proper documentation for returning with personal used items that may normally require duty and for what items can be brought back or not brought back from your travels.
Since you are a student, you should know the following information at "What travel documents and identification are required for a foreign national to enter the U.S.?" (https://help.cbp.gov/app/answers/detail/a_id/572/kw/students). "Continuing students who are going to travel outside of the United States must see their foreign student advisor and obtain an endorsement from the DSO or RO. The endorsement will be made on page 3 of the SEVIS Form I-20 or page 1 of the DS-2019. When returning to the United States, a continuing student/exchange visitor must present a valid SEVIS Form I-20 or DS-2019 with the DSO or RO signature showing that the student is active and in good standing with the school or program." For more information, see the "Student and Exchange Visitor Program" at https://www.ice.gov/sevis.
Have a great visit and a safe journey.