Question: why are avionics so expensive?
Answer: The hardware is expensive! avionics generally require a greater level of precision than your iPhone GPS and 3 axis sensors. Most modern AHRS use micro-mechanical internals, magnetometers and other complex (read costly) units. These units need to maintain precision at all times.