The American language tends to do this where we will say things that wouldn't make sense to foreigners studying the language.
"are you nuts" is simply asking if they person is crazy. They could be asking the sentence because they person may have done something they would think is stupid or if they didn't agree with what the person did.