A personal question like "Why did you do that?" clearly asks for an explanation. What that explanation might be depends on context: it all depends on circumstance. This type of question about motives only applies to the people concerned.