Was the order of operations made the way it was due to necessity, as in it would not work any other way, or was it an agreement to avoid confusion?
The reason I was thinking about this was because I was thinking why we round anything that ends in 5 up, since it was equally distance between the 2 options. We just all “agreed” that anything ending in 5 should be rounded up. Did the same thing happen with order of operations? Its obvious why anything in parenthesis needs to be calculated first but why do exponents need to be calculated first? Why does 2*5^2=50 and not 100.
Additionally, why was it decided that we need to do multiplication/division before addition/subtraction?
Your premise is wrong. We didn’t just all “agree” that anything ending in 5 should be rounded up. We round up because if there are any more digits following the 5, then the number really is closer to the one up than the one down, hence it should be rounded up. It’s only equally distant in the case where you are rounding at the second to last digit of your measurement, and that last digit is a 5. That’s not a common situation in the real world.
I’ve actually seen different conventions for how to round numbers that end in 5, but “always round up” is the simplest, and it makes sense because, as suranyi points out, even though 7.5 is exactly halfway between 7 and 8, if there are any more digits after the .5, the number is closer to 8 than it is to 7.
It’s not much different from the reason we commonly refer to noon as “12:00 pm.” Technically, 12:00 exactly isn’t “post meridiem” (after noon), but 12:00:01 is.
I think (but am willing to be corrected) that the order of operations is a matter of convention or notation, which, like other such, is in a sense arbitrary, but some choices of notation or convention are more natural or a better fit for the way the math actually works (e.g. the distributive property). How would “combining like/similar terms” look if we did things the other way around, with addition coming before multiplication?
Think of it as mathematical grammar. In order for the language to make sense and mean the same thing every time it is written the same way, the rules have to be consistent.