REGR: loc not working with NamedTuple
- [x] closes #48124 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

This fix might be worth repeating around here to fix the same issue for `iloc`:
https://github.com/pandas-dev/pandas/blob/a2a939e5591657d4340c0f19e8a9a068e38b7078/pandas/core/indexing.py#L1605-L1609

See https://github.com/pandas-dev/pandas/issues/48124#issuecomment-1221269105 for a reproducible example. Not a regression, so will keep this out of this pr Understandable, #48188 has been made to tackle the iloc issue Committed the changes cool. can merge on green.