Why are pianos hard to record?

It’s a rare treat when we can hear a properly recorded piano. But, why is that?