Api returns different data when stock market is closed

Why is alpaca api returning different data before 9:30 and after 4 pm. Shouldn’t be the market closed at that time and prices constant?

There is a thing called after market (and a pre market)