Because when registering your post type you have 'exclude_from_search' => true
get_posts()
is just passing that to WP_Query
. In the parameter definitions for WP_Query
it states:
‘any’ – retrieves any type except revisions and types with ‘exclude_from_search’ set to true.