Near the end of life, breathing changes, and the changes are loud enough and strange enough to frighten anyone who was not told to expect them. The breaths space out into long pauses, then come fast and shallow. A wet, rattling gurgle sets in, the sound people call the death rattle. Almost all of it distresses the people in the room more than the person doing the breathing.
This page names each pattern you might hear, says what it is, and says plainly whether it hurts. The load-bearing fact: by the time these sounds start, the dying person is usually beyond feeling them. For the wider picture of the last days, read what dying actually looks like.