This isn’t quite right…
Apple didn’t have the means to decrypt the information, but it was within their ability to do (by writing code to do so.)
But asking a company for the unencrypted data, and forcing a company to produce a new application, are completely different things.