Yes, walled gardens are bad, but in this case it was the combination of walled garden, region restrictions for vital health info, conflicting region restrictions, health info not being available outside the app, and a healthcare system that itself is completely broken. Each of these is stupid and dangerous, and if even one of them hadn't been the case, the author wouldn't have had this problem.
It's a whole ecosystem of enshittification.