Why can my watch measure pulse of some inanimate objects when tap the heart rate APP?

When you tap the APP it’s like sending a command to it, the watch will execute the command whatever the watch status is. After measuring the change in light quantity, you can still have an result.