What's with building?

How the hell does it work can certain characters build certain things if so wtf that is stupid jack a robot should be able to build turrets also how does the fab level up