How old was she?
Production breeds(Isa browns, golden comet, cinnamon queens etc) are extremely prone to laying problems and are usually swapped out commercially between 18-24 months as they tend to quickly lay less and less and become more prone to production problems in that time frame and especially beyond it. If during winter you supplement their light to induce laying they don't get the natural rest period they are made to have and that also increases the chances of laying problems. Laying problems are effected by many things though for example; breed, genetics, feed/diet, artificial daylight, weight(overweight birds tend to have more trouble). Etc.
If you are wanting pet birds that will live longer I would suggest a heritage breed especially if you can find a none hatchery strain. Although in my own opinion hatchery heritage birds are better than production birds. There are always exceptions to every rule and I know some people have been able to keep production hens for years and had problems with hatchery heritage breeds.