If you put on your socks then your shoes, you're fine. If you reverse the order, it's a disaster. In math, does 3 + 5 give the same as 5 + 3? What about 3 × 5 and 5 × 3? Some operations care about order — some don't.
The rules about order and grouping have names. Let's learn them.