The last traded price (LTP) does not match the bids and offers because the quotes in market depth are based on buyers and sellers, while the LTP updates only when a trade takes place.
The LTP does not fluctuate to match the bids and offers, though you can see fluctuations in the market depth. You can check the Last Traded Time (LTT) for the latest trade time.