I changed the bayonet fitting in the downstairs hallway last week as I had enough of it fouling on the front door every time it was opened to a flush fit and found that it ....... have been wired into the upstairs lighting circuit and not the downstairs one.
I believe this might be to avoid the "borrowed neutral" problem. If you've got 2-way switching and the upstairs lights are on a different RCD to the downstairs lights, then it's possible for a light to take it's power from the upstairs circuit but to have it's neutral wire on the downstairs circuit (or vice versa) and so the RCDs will see a current mismatch and will trip.