The “I before E” rule is weird.
Yeah… A lot of exceptions to that rule, mainly because of how the English language developed.