They very much bat an eye at drivers who use headphones/earbuds while driving--as they should because it is much more dangerous, blocking or muting external sounds while very actively drawing your attention because the sounds are being sent straight into your ear canal.
Hearing through headphones is not comparable to hearing through an external speaker, even in an enclosed space.