We use this expression to ask what someone did - especially if we think it was something unusual.
I had the most fantastic weekend.
Really? What did you get up to?
I did my first parachute jump, actually. It was brilliant.
I heard that Barry's in trouble. What did he get up to this time?
I think he had a huge argument with the Headmaster.