Birmingham City were beaten at home in the league for the first time since April 2024 after Hull City won at St Andrew's.