High cost is mostly accounted by more refined materials, lighter, more airflow, better components, size fitted rather than "universal", more easily adjusted to fit, etc. And yes, there is a style/posing element in there.
Of course, if a $40.00 dollar helmet fits well, has the appropriate US/European safety standard marks, it's just as safe and effective as any other.
This is quite helpful.