Lord is used in exclamations such as 'good Lord!' and 'oh Lord!' to express surprise, shock, frustration, or annoyance about something.
[feelings] 'Good lord, that's what he is: he's a police officer.'
'They didn't fire you for drinking, did they?'—'Lord, no! I only drink beer, nowadays.'