It's only a sign of hostility if used as such. If I need to remind you to look up from your phone becuase a light has turned green, then a quick "doot" or "doot doot" isn't typically considered hostile. If someone does consider that hostile, then as the parent said, they're probably an angry person regardless, so it's still not the horn that's hostile.