I’m sure these comments are going to make it into r/badlinguistics .
A short answer has to do with how sounds are articulated and something called sonority. As some commenters have pointed out, different sounds are produced differently in the mouth in terms of place and manner.
Try googling or looking on Wikipedia for introductory phonetics and “articulation”.
Latest Answers