Dedicated to the detail
The most likely reason is that it was done with oil-based paint. Yellowing has always occurred in oil-based paints but prior to the 2010's, this happened much more slowly. After new regulations were introduced, paint manufacturers were forced to reformulate their products meaning that oil-based paint now loses its whiteness much faster.
In addition, if your woodwork has been in place for many years, it is likely that there are several layers of paint covering it and hiding the true profile of the wood. There may also be drips, bits of fluff or cracks spoiling the look of your doors, frames, sills and skirting.
Modern water-based paint is a great alternative because it doesn't go yellow, dries much quicker and is virtually odourless. However, the proper process needs to be followed alongside good quality products to ensure lasting results. The woodwork must be properly prepared before the paint is applied, but the end result is worth the effort.
The paint that I use is water based and contains enamel, so it is very hardwearing. My process is to first remove flaking paint and cracked caulk. then use my dustless sander to smooth the surface. I repair holes and cracks using permanent wood filler then sand again. I then apply fresh caulk and a high quality adhesion primer to ensure that the the paint bonds well to the surface. I then follow with two coats of the high quality woodwork paint. The result is super white, smooth woodwork that will look great for years to come.