Let's say the pipe in my bathroom does not let water flow through it because something like hair or debris is in the pipe. In this situation, we say "the pipe got clogged" (something is inside the pipe).
We say "the key got stuck in the lock" to mean we can not get the key out of the lock.
Similarly, "the pipe got stuck" might be interpreted that we can not get the pipe out of something and it does not mean there is something inside the pipe.
My question:
Is there any extra meaning of "X got stuck" to mean there is something in X.?