Why is it soo hot where i live but other parts is alittle fresh ?๐Ÿ™„๐Ÿ–•๐Ÿผ

So i live in California and the town is called Bakersfield. Basically where i live is the desert. No ocean . No nothing , we do have lakes and little rivers but no ocean , the ocean is like an hour or 2 hours away. It is currently 102 degrees and i dont get some parts of California is so fresh like in the 70โ€™s and 80โ€™s. Why do we have to deal with triple digits???? Its not fair and too hotttt!!!!! Los angeles is 81 degrees right now๐Ÿ˜ค๐Ÿ˜ค i hate living here!!!