What makes sound patterns meaningful?

Understanding sound patterns when learning a new language helps to increase your fluency, and composers know that if they stick to certain rules, they can create effective sound patterns by creating a melody and a chord progression that works in a meaningful way.