There’s a bug in the latest WP version that apparently puts extremely low numbers in the ‘attachment’s’ post_parent field: I haven’t figured out why this happens, but my suspicion is that the defect is in the update query in either a post or attachment1.
That said, it makes totally no sense to tie attachments to posts.
1A-Ha. It’s the Autosave.