It's rare to install flooring before cabinets. Flooring is usually the very last thing done. Painters hate to have to cover up all the flooring, and risk getting paint on it. Flooring rarely goes under cabinets, you usually set the cabinets and then tile up to them. Trim guys install baseboards half an inch off of the subfloor so you can slide the flooring under the trim. Painters can paint the trim in seconds this way. If there was flooring in place, they would have to tape it before spraying it. Trim is always sprayed, even if it's stained, the clear finish is sprayed over the stain.
LOL at the bolded -- our painters didn't worry about it at all. They were happy to get paint all over our tile and hardwoods (between poly coats :/ ). I curse them regularly...
Don't know if it's regional, a function of when trades were available, or just our builder, but our house went in this order:
1. Tile
2. Cabinets
3. Trim
4. Paint pass #1
5. Hardwoods (incl. first poly coat)
6. Carpet
7. Paint pass #2
8. 2nd Hardwood poly coat
This led to all kinds of issues -- paint on carpets, paint on hardwoods between poly coats (so there until we refinish), etc. Apparently the painter our builder uses doesn't believe in drop cloths.
Our cabinets were painted offsite by the manufacturer (Kabinart). But they're not custom, so I suppose that's why.