When using the /playsound command, some sounds (e.g. ambient.underwater.enter) do not get quieter as the player walks away, they even keep playing when the player leaves the radius of the commands location. They only cannot be played to players who are already outside the radius at the time of command execution.
Further example instructions as requested:
1. Place a command repeating command block with the command "playsound minecraft:ambient.underwater.enter master @a" (using master as the sound source is irrelevant, the issue applies with any option) and activate it.
2. Move away from the command block. Hear how the sound just suddenly cuts off when being more than 16 blocks away without getting quieter before?
3. Change the command to "playsound minecraft:block.chain.step master @a"
4. Move away again. Hear how now, the sound will get quieter with distance? This effect should apply to all sounds playable through /playsound.
Video for reference. (Excuse the low bitrate, I didn't want to bother with the 10mb upload limit)
Related issues
Attachments
Comments

Please provide the exact command used to reproduce the described bug, and clear steps to reproduce it reliably. A video of the bug occurring would also be very appreciated.

The difference here is mono trakc sound file VS stereo track sound file. Stereo tracks don't decrease by distance.

Thank you for your report!
We're tracking this issue in MC-146721, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki