Two issues here: Apple should not be require to develop tools that weaken the security and privacy of the devices they sell. They will help access data on phones when warranted (as they have done), but creating tools that give anyone in possession of the phone the ability to access it goes way beyond “the government has a right to access data”. It means nobody has a right to sell secure devices. The government is not asking them for data, they are demanding that Apple fight their battle for them.
And while the government may or may not have a right to inspect your phones, you DO have the right to keep it locked down as much as you want, regardless of whether or not you can do that with your home. There is no law or constitutional requirement that limits how much you can protect your privacy.