It's called burying the lede. It should have been disclosed up front.
Burying the lede refers to the practice of hiding the most important and relevant information within a story, often by placing it towards the end or burying it beneath less crucial details. This technique can be used intentionally to manipulate the narrative or unintentionally due to poor storytelling.
and 