You have just encountered a feature called 'mechanical safety' That't why it's there and how it works. My betting is that you hadn't closed the bolt fully. The remainder, such as trigger pull etc is a bit of a red herring because it was after you'd squeezed the trigger. Nope. bolt not fully closed and mechanical safety comes into operation.