Flat tire/ Tyre !! ><

Hey all
Whilst i was riding to uni this morning when i heard my rear tire make a funny sound, i just thought i went over some debris or something so i didn't pull over, 2hours later i rode back home still no problem...Then in the arvo around 6pm i went to ride back to uni and the rear was flat! How come it didn't get flat straight away? i think i need to get a new rear tire, i guess i deserve this for being stupid and experimenting with locking the rear
Do you guys think i should repair the puncture and ride to a shop? any recommendations for tires/shops? i live around pennant hills.
Thanks!!
Whilst i was riding to uni this morning when i heard my rear tire make a funny sound, i just thought i went over some debris or something so i didn't pull over, 2hours later i rode back home still no problem...Then in the arvo around 6pm i went to ride back to uni and the rear was flat! How come it didn't get flat straight away? i think i need to get a new rear tire, i guess i deserve this for being stupid and experimenting with locking the rear

Thanks!!