Why does Apple have more control over my phone than the US government has over guns?
But just to state the obvious, there's nothing in the constitution that talks about an inherent right to control over your phone, but there is absolutely an amendment that says "a well-regulated militia being necessary to the security of a free state, the right to keep and bear arms shall not be infringed" (and no, "well-regulated" does not mean the modern definition of "regulation")
According to the analogy, Apple should have less control over our phones.
Which is true.