It’s super normal. I got treated like trash too when I was at a US border despite being a permanent resident 😅 The immigration officer was just doing his job. It wasn’t personal. Your visa means they will let you in but it doesn’t mean they are obligated to be nice to you.