Well, this is the first time I've heard of that happening.
It seems they had an operational contingency since yesterday leg MAD-SCL got delayed 14 hours. I believe LATAM didn't have an available plane in time at Frankfurt and opted to charter the FRA-MAD leg to avoid being fined by the EU
This shouldn't happen often, I hope you can board the 787 next time