What is $post->ID

The post ID.

It’s not possible to say any more without more context. If I had to guess $post in this case is a WP_Post object that represents the current post and the author of the post wants to get some posts while excluding the current post. Just be aware that doing so this way is typically a bad idea.

tech