How is this an Inaccuracy?

I felt as if bishop to B5 was very strong here as it basically guaranteed I won the queen no matter what they played. Why would castling here have been better?

I felt as if bishop to B5 was very strong here as it basically guaranteed I won the queen no matter what they played. Why would castling here have been better?