Kidney stones typically cause pain when they cause obstruction.
This is when the stone sits somewhere in the ureter and cause the kidney to dilate. Stones that sits within the kidney and not causing the kidney to dilate may cause renal colic
as well. Instead of causing the whole kidney to obstruct, it causes a small part of the kidney to obstruct (infundibulum–caliceal level) and can cause pain.